From 4969f377ad289eab5b825022b2f3ee7a9f8b3738 Mon Sep 17 00:00:00 2001 From: Pavel Nedev Date: Fri, 3 Aug 2018 11:56:20 +0300 Subject: [PATCH] Fix backup not fully disabled issue Fixes #4663, close #4738 --- PowerEditor/src/Notepad_plus.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index f5dacbc50..16ab83dd0 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -3541,8 +3541,11 @@ int Notepad_plus::switchEditViewTo(int gid) _pDocMap->initWrapMap(); } - // Before switching off, synchronize backup file - MainFileManager->backupCurrentBuffer(); + if (NppParameters::getInstance()->getNppGUI().isSnapshotMode()) + { + // Before switching off, synchronize backup file + MainFileManager->backupCurrentBuffer(); + } notifyBufferActivated(_pEditView->getCurrentBufferID(), currentView()); return oldView;