From 0d9b16634d55fe9bee1833c2f6be40921b8fa5a6 Mon Sep 17 00:00:00 2001 From: Alan Kilborn Date: Mon, 6 Feb 2023 11:08:19 -0500 Subject: [PATCH] Fix Synch H/V Scrolling commands not sync with 2 views Fix #5250, fix #13071, close #13069 --- PowerEditor/src/NppIO.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index d0bcb4c92..1f8416d1b 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -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();