From f4297f1a837c93e09962715c40ba932567d46aa2 Mon Sep 17 00:00:00 2001 From: molsonkiko <46202915+molsonkiko@users.noreply.github.com> Date: Mon, 14 Aug 2023 19:22:36 -0700 Subject: [PATCH] Fix cloned document disassociated issue after Npp being relaunched Fix #10266, close #14003 --- PowerEditor/src/NppIO.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 488546c64..47bf93f3f 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -2246,6 +2246,13 @@ bool Notepad_plus::loadSession(Session & session, bool isSnapshotMode, bool shou continue; //skip session files, not supporting recursive sessions or embedded workspace files } + BufferID clonedBuf = _mainDocTab.findBufferByName(pFn); + if (clonedBuf != BUFFER_INVALID) + { + loadBufferIntoView(clonedBuf, SUB_VIEW); + ++k; + continue; + } bool isWow64Off = false; if (!PathFileExists(pFn)) {