-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
Description of the Issue
(Yes, this is a really minor error, but I wanted to document it here anyway, in case anyone cares. As with my previous bug report, I seriously doubt many people will.)
Normally, while editing a file, that file's path is removed from the Recent Files list until it is closed, but if the file is opened indirectly as the consequence of a Save As action on a different file, the tab changes to the different file name, but the second file name remains in the list. It is my impression that the Recent Files list is intended to only contain files that aren't currently open, but this situation violates that principle.
Steps to Reproduce the Issue
- Create, save, and close two files from NPP, e.g.
one.txtandtwo.txt. Verify that the two files both appear in the Recent Files list. - Open
one.txt. Verify that its path disappears from the Recent Files list while NPP has it open for editing. - Select
Save Asfrom theFilemenu (notSave a Copy AsorClose). In the dialog box that appears, navigate to the location oftwo.txt, select it, and clickSave. When NPP asks if you want to replacetwo.txt, clickYes. - Examine the Recent Files list again.
Expected Behavior
one.txt should appear in the Recent Files list, but two.txt should not, because it is currently open and being edited.
Actual Behavior
Both one.txt and two.txt are in the Recent Files list.