Fix cloned document disassociated issue after Npp being relaunched

Fix #10266, close #14003
pull/13453/head^2
molsonkiko 2023-08-14 19:22:36 -07:00 committed by Don Ho
parent 7340696734
commit f4297f1a83
1 changed files with 7 additions and 0 deletions

View File

@ -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 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; bool isWow64Off = false;
if (!PathFileExists(pFn)) if (!PathFileExists(pFn))
{ {