Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent Files list not revised after Save As #10946

Closed
TBugReporter opened this issue Dec 25, 2021 · 0 comments
Closed

Recent Files list not revised after Save As #10946

TBugReporter opened this issue Dec 25, 2021 · 0 comments

Comments

@TBugReporter
Copy link

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

  1. Create, save, and close two files from NPP, e.g. one.txt and two.txt. Verify that the two files both appear in the Recent Files list.
  2. Open one.txt. Verify that its path disappears from the Recent Files list while NPP has it open for editing.
  3. Select Save As from the File menu (not Save a Copy As or Close). In the dialog box that appears, navigate to the location of two.txt, select it, and click Save. When NPP asks if you want to replace two.txt, click Yes.
  4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant