Skip to content

Wrong filename displayed in statusline when saving to another file #3712

@4goettma

Description

@4goettma
$> micro --version
Version: 2.0.15-dev
Commit hash: 04c57704
Compiled on August 28, 2024

How to reproduce:

  1. run micro a.txt
  2. type aaa, press Ctrl+S
  3. press Ctrl+E, enter save b.txt, press Return
  4. type bbb
  5. Observation: statusline displays a.txt as the file name
  6. press Ctrl+S
  7. Observation: statusline displays b.txt as the file name, a.txt contains aaa, b.txt contains aaabbb

What's the problem?
At step 5), the user doesn't expects the file content to be written to file b.txt since it's not displayed in the statusline as the active file. The user might not want to change the content of file b.txt.

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