From 3de15f55129fb54fd804f9b5bb4f59ff4fd8c4fb Mon Sep 17 00:00:00 2001 From: xomx Date: Mon, 21 Feb 2022 18:28:18 +0100 Subject: [PATCH] Enhance performance on exit with certain settings Notepad++ is unnecessarily stalled in the situation, when closing a N++ with a large file opened within, but the session.xml file will not be updated at all due to the current Notepad++ settings chosen. Fix #11219, close #11259 --- PowerEditor/src/NppBigSwitch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp index 82d971827..a7388bd43 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -1975,7 +1975,8 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa } Session currentSession; - getCurrentOpenedFiles(currentSession, true); + if (!((nppgui._multiInstSetting == monoInst) && !nppgui._rememberLastSession)) + getCurrentOpenedFiles(currentSession, true); if (nppgui._rememberLastSession) {