From d646daa5d2f729615462b733ebaa3fec3f9c454a Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Sat, 6 Jan 2018 12:52:55 +0100 Subject: [PATCH] + fix: document modified flag not set properly (title, toolbar & statusbar only) --- src/Notepad3.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Notepad3.c b/src/Notepad3.c index f055aa650..8a8c912bc 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -5672,19 +5672,17 @@ LRESULT MsgNotify(HWND hwnd,WPARAM wParam,LPARAM lParam) EditUpdateUrlHotspots(g_hwndEdit, (int)scn->position, (int)(scn->position + scn->length), bHyperlinkHotspot); } - if (scn->linesAdded != 0) { - UpdateLineNumberWidth(); - } - - UpdateToolbar(); - if (iMarkOccurrences) { EditClearAllMarks(g_hwndEdit, 0, -1); MarkAllOccurrences(0); } - UpdateStatusbar(); bModified = TRUE; + if (scn->linesAdded != 0) { + UpdateLineNumberWidth(); + } + UpdateToolbar(); + UpdateStatusbar(); } break;