Skip to content

Recent Files list not revised after Save As #10946

@TBugReporter

Description

@TBugReporter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions