| @@ -1082,6 +1082,11 @@ void TextEditor::colourChanged() | |||||
| } | } | ||||
| void TextEditor::lookAndFeelChanged() | void TextEditor::lookAndFeelChanged() | ||||
| { | |||||
| recreateCaret(); | |||||
| } | |||||
| void TextEditor::recreateCaret() | |||||
| { | { | ||||
| if (isCaretVisible()) | if (isCaretVisible()) | ||||
| { | { | ||||
| @@ -2128,7 +2133,7 @@ void TextEditor::handleCommandMessage (const int commandId) | |||||
| void TextEditor::enablementChanged() | void TextEditor::enablementChanged() | ||||
| { | { | ||||
| setCaretVisible (isCaretVisible()); | |||||
| recreateCaret(); | |||||
| repaint(); | repaint(); | ||||
| } | } | ||||
| @@ -712,6 +712,7 @@ private: | |||||
| void moveCaret (int newCaretPos); | void moveCaret (int newCaretPos); | ||||
| void moveCaretTo (int newPosition, bool isSelecting); | void moveCaretTo (int newPosition, bool isSelecting); | ||||
| void recreateCaret(); | |||||
| void handleCommandMessage (int) override; | void handleCommandMessage (int) override; | ||||
| void coalesceSimilarSections(); | void coalesceSimilarSections(); | ||||
| void splitSection (int sectionIndex, int charToSplitAt); | void splitSection (int sectionIndex, int charToSplitAt); | ||||