From 3ef8c4b037c622f910a0d13bba91657df1f78d9d Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 23 Aug 2021 17:27:16 +1000 Subject: Fix change set 8902 which could cause caret to stop blinking. Occurred when a redraw was requested during a paint. --- src/Editor.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Editor.cxx b/src/Editor.cxx index fcd94763c..b4031c8f1 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -485,11 +485,11 @@ void Editor::Redraw() { //Platform::DebugPrintf("Redraw all\n"); const PRectangle rcClient = GetClientRectangle(); wMain.InvalidateRectangle(rcClient); - if (wMargin.GetID()) + if (wMargin.GetID()) { wMargin.InvalidateAll(); - else + } else if (paintState == PaintState::notPainting) { redrawPendingText = true; - //wMain.InvalidateAll(); + } } void Editor::RedrawSelMargin(Sci::Line line, bool allAfter) { -- cgit v1.2.3