From 02dd1d36fcb624c2df9e20b388125c48341c442d Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sat, 1 Jul 2023 03:26:55 +0200 Subject: [PATCH] Add blank document only when the sessin is remembered Fix #13796 --- PowerEditor/src/Notepad_plus_Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/Notepad_plus_Window.cpp b/PowerEditor/src/Notepad_plus_Window.cpp index 5a1cba9e4..a892ffd65 100644 --- a/PowerEditor/src/Notepad_plus_Window.cpp +++ b/PowerEditor/src/Notepad_plus_Window.cpp @@ -317,7 +317,7 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR *cmdLin ::SendMessage(_hSelf, NPPM_INTERNAL_ENABLECHANGEHISTORY, 0, 0); - if (nppGUI._newDocDefaultSettings._addNewDocumentOnStartup) + if (nppGUI._newDocDefaultSettings._addNewDocumentOnStartup && nppGUI._rememberLastSession) { ::SendMessage(_hSelf, WM_COMMAND, IDM_FILE_NEW, 0); }