Skip to content

Left path saved from a blank file comparison is lost from the path bar #64

Description

@dafi

What happens?

The scenario is valid for both left and right

In a blank file comparison, saving the left panel to a new file updates the path bar with the chosen path.

Closing the window then asks whether to save the session: after answering that prompt with Cancel, the window stays open but the left path bar is empty again, so the panel no longer shows the file that was just written to disk.

What did you expect to happen?

The path bar should keep showing the path of the file just saved, no matter how the session save prompt is answered.

Steps to reproduce

  1. Open a blank file comparison, with both panels empty
  2. Open a file in the right panel
  3. Copy a line from the right panel to the left panel
  4. Close the window
  5. In the unsaved files prompt, choose to save the left file, then pick a destination in the save panel
  6. Note the path bar now showing the new left path
  7. In the session save prompt that follows, choose Cancel
  8. The left path disappears from the path bar

Environment

No response

Logs / screenshots (optional)

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions