diff --git a/src/Notepad3.c b/src/Notepad3.c index 0e7ac8e2e..99fbebbff 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -7749,7 +7749,7 @@ static void __fastcall _UpdateStatusbarDelayed(bool bForceRedraw) FormatNumberStr(tchLines); } - if ((s_iLnFromPos != iLnFromPos) || (s_iLnFromPos != iLnFromPos)) + if ((s_iLnFromPos != iLnFromPos) || (s_iLnCnt != iLnCnt)) { FormatString(tchStatusBar[STATUS_DOCLINE], txtWidth, IDS_STATUS_DOCLINE, g_mxStatusBarPrefix[STATUS_DOCLINE], tchLn, tchLines); s_iLnFromPos = iLnFromPos; @@ -8455,7 +8455,7 @@ bool FileLoad(bool bDontSave, bool bNew, bool bReload, bool bSkipUnicodeDetect, _SetDocumentModified(false); UpdateToolbar(); - UpdateStatusbar(false); + UpdateStatusbar(true); UpdateLineNumberWidth(); // Terminate file watching @@ -8620,7 +8620,7 @@ bool FileLoad(bool bDontSave, bool bNew, bool bReload, bool bSkipUnicodeDetect, //bReadOnly = false; _SetDocumentModified(false); UpdateToolbar(); - UpdateStatusbar(false); + UpdateStatusbar(true); UpdateLineNumberWidth(); UpdateVisibleUrlHotspot(0); @@ -8636,8 +8636,6 @@ bool FileLoad(bool bDontSave, bool bNew, bool bReload, bool bSkipUnicodeDetect, else if (!(bFileTooBig || bUnknownExt)) MsgBox(MBWARN,IDS_ERR_LOADFILE,szFileName); - UpdateStatusbar(true); - return(fSuccess); } diff --git a/test/TestAhkNotepad3.ahk b/test/TestAhkNotepad3.ahk index 333ee0b51..389811f68 100644 --- a/test/TestAhkNotepad3.ahk +++ b/test/TestAhkNotepad3.ahk @@ -33,10 +33,13 @@ if (v_ErrLevel != 0) ; ----------------------------------------------------------------------------- GoSub CHECK_NP3_STARTS +Sleep, 500 GoSub CHECK_WIN_TITLE +Sleep, 500 GoSub CHECK_ABOUT_BOX -Goto LABEL_END + +Goto LABEL_END ; ============================================================================= ; =============================================================================