Skip to content

Closing modified clone produces make periodic backup lost #8227

@sasumner

Description

@sasumner

Description of the Issue

When a file tab is cloned into another view, by definition there is an exact-copy file tab in the opposite view. When one of the cloned tab is closed by the user, it can be discarded without any save prompting because the file will still be open in a tab in the opposite view, with all data intact.

Unfortunately, it doesn't happen this way and save prompting occurs.

Steps to Reproduce the Issue

  1. Create a new file or open an existing disk file in Notepad++
  2. Modify the file in some way
  3. Clone the file (e.g. right-click its tab, choose Clone to Other View)
  4. Close either of the tabs for this file

Expected Behavior

I expect the file tab to quietly disappear in the view I've told it to close in; because of its cloned nature nothing can be lost.

Actual Behavior

I'm prompted to save:
image
I'm not ready to save at this point, but I want the clone closed, so I choose No.
The clone closes, which is good, but I should not have been prompted in the first place

Even stranger, if I leave the file unsaved and attempt to quit Notepad++, I get this prompt:
image

Backup preferences are set this way:
image

Debug Information

Notepad++ v7.8.6 (32-bit)
Build time : Apr 21 2020 - 15:17:06
Path : C:..........\npp.7.8.6.bin\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1809
OS Build : 17763.1039
Plugins : mimeTools.dll NppConverter.dll NppExport.dll

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions