diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 265159d81..ef88827fc 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -3057,6 +3057,9 @@ int Notepad_plus::switchEditViewTo(int gid) _pDocMap->initWrapMap(); } + // Before switching off, synchronize backup file + MainFileManager->backupCurrentBuffer(); + notifyBufferActivated(_pEditView->getCurrentBufferID(), currentView()); return oldView; }