diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 083032cff..fcde5bda2 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -2284,6 +2284,7 @@ bool Notepad_plus::loadSession(Session & session, bool isSnapshotMode, const wch if (clonedBuf != BUFFER_INVALID) { loadBufferIntoView(clonedBuf, SUB_VIEW); + lastOpened = clonedBuf; } else {