aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index adc9f3492..59d5d54e6 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -122,7 +122,6 @@ Editor::Editor() : durationWrapOneLine(0.00001, 0.000001, 0.0001) {
cursorMode = SC_CURSORNORMAL;
- hasFocus = false;
errorStatus = 0;
mouseDownCaptures = true;
mouseWheelCaptures = true;
@@ -5072,7 +5071,11 @@ void Editor::FineTickerCancel(TickReason) {
}
void Editor::SetFocusState(bool focusState) {
+ const bool changing = hasFocus != focusState;
hasFocus = focusState;
+ if (changing) {
+ Redraw();
+ }
NotifyFocus(hasFocus);
if (!hasFocus) {
CancelModes();