Fix Synch H/V Scrolling commands not sync with 2 views

Fix #5250, fix #13071, close #13069
This commit is contained in:
Alan Kilborn 2023-02-06 11:08:19 -05:00 committed by Don Ho
parent 9285bf2d42
commit 0d9b16634d

View File

@ -796,6 +796,8 @@ void Notepad_plus::doClose(BufferID id, int whichOne, bool doDeleteBackup)
_pDocumentListPanel->closeItem(hiddenBufferID, whichOne);
}
checkSyncState();
// Notify plugins that current file is closed
if (isBufRemoved)
{
@ -2331,6 +2333,8 @@ bool Notepad_plus::loadSession(Session & session, bool isSnapshotMode, bool shou
else if (canHideView(currentView()))
hideView(currentView());
checkSyncState();
if (_pDocumentListPanel)
_pDocumentListPanel->reload();