Fix Recent Files List not revised issue after "Save As" command

Fix #10946, close #10994
pull/11008/head
Rajendra Singh 3 years ago committed by Don Ho
parent 0dd0a9586a
commit 23b2a3fa8e

@ -1717,6 +1717,13 @@ bool Notepad_plus::fileSaveAs(BufferID id, bool isSaveCopy)
{ {
_lastRecentFileList.add(origPathname.c_str()); _lastRecentFileList.add(origPathname.c_str());
} }
// If file is replaced then remove it from recent list
if (res && !isSaveCopy)
{
_lastRecentFileList.remove(fn.c_str());
}
return res; return res;
} }
else //cannot save, other view has buffer already open, activate it else //cannot save, other view has buffer already open, activate it

Loading…
Cancel
Save