diff --git a/PowerEditor/src/NppNotification.cpp b/PowerEditor/src/NppNotification.cpp index 2366eb327..9e35b8681 100644 --- a/PowerEditor/src/NppNotification.cpp +++ b/PowerEditor/src/NppNotification.cpp @@ -123,7 +123,7 @@ BOOL Notepad_plus::notify(SCNotification *notification) if (isSnapshotMode && !isDirty) { bool canUndo = _pEditView->execute(SCI_CANUNDO) == TRUE; - if (!canUndo && buf->isLoadedDirty()) + if (!canUndo && buf->isLoadedDirty() && buf->isDirty()) isDirty = true; } buf->setDirty(isDirty);