From cb7973ba0dd99f4823a01fa0ffd5481bd592a3de Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Thu, 5 Mar 2020 23:50:17 +0100 Subject: [PATCH] + fix: update infinity loop --- src/Notepad3.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Notepad3.c b/src/Notepad3.c index 61d8b0b3f..eaf859ea0 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -7075,16 +7075,15 @@ static LRESULT _MsgNotifyFromEdit(HWND hwnd, const LPNMHDR pnmh, const SCNotific } } } - //else if (iUpd & SC_UPDATE_CONTENT) { - // ignoring SC_UPDATE_CONTENT cause Style and Marker are out of scope here - // using WM_COMMAND -> SCEN_CHANGE instead! + //~else if (iUpd & SC_UPDATE_CONTENT) { + //~ ignoring SC_UPDATE_CONTENT cause Style and Marker are out of scope here + //~ using WM_COMMAND -> SCEN_CHANGE instead! //~~~MarkAllOccurrences(Settings2.UpdateDelayMarkAllCoccurrences, false); - //~~~UpdateVisibleIndicators(); + //~~~EditUpdateVisibleIndicators(); // will lead to recursion //} - EditUpdateVisibleIndicators(); + HandlePosChange(); UpdateToolbar(); UpdateStatusbar(false); - HandlePosChange(); } else if (iUpd & SC_UPDATE_V_SCROLL) {