PythonScript icon indicating copy to clipboard operation
PythonScript copied to clipboard

notepad.saveAs() creates duplicate-named tab in Notepad++

Open sasumner opened this issue 5 years ago • 0 comments

In version 1.5.2.0, if I have a saved file tab in Notepad++ with a given pathname (call it P), and then I do:

notepad.new()
editor.setText('blah')
notepad.saveAs(P)

I will get two tabs in Notepad++ that have exactly the same path (and aren't cloned). Normally, this type of situation shouldn't exist in Notepad++.

Is it on me as the PS programmer to write code around this situation, or is there something that the logic the notepad.saveAs() code could/should do to avoid this happening?

I can certainly code around it, but I was wondering what the feeling is about this.

sasumner avatar Feb 12 '20 21:02 sasumner