From 6db7b94dfb510020a267897ed1175b2114198aa1 Mon Sep 17 00:00:00 2001 From: Don HO Date: Thu, 22 Oct 2020 20:18:01 +0200 Subject: [PATCH] Fix a regression: not exit after saving a modified file Fix regression due to 469fa62c0ebc438c8003c735e6a801c6d098df7c https://github.com/notepad-plus-plus/notepad-plus-plus/commit/469fa62c0ebc438c8003c735e6a801c6d098df7c Fix #9045 --- PowerEditor/src/NppIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index de4747b25..a56c7c0fb 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -666,7 +666,7 @@ bool Notepad_plus::doSave(BufferID id, const TCHAR * filename, bool isCopy) _pFuncList->reload(); } - return res; + return res == SavingStatus::SaveOK; } void Notepad_plus::doClose(BufferID id, int whichOne, bool doDeleteBackup)