Operating System and Version
macOS Sonoma 14.7.1 (23H222)
Distribution
brew (Homebrew)
Description
As it says on the title.
Steps to Reproduce
- Enable "Restore previous session" and
"Unsaved changes" "Temporary Files"
- Make a new tab, put some text in it, and quit Notepadnext. (If you open Notepadnext again, it will restore the temporary file. Quit again.)
- Open a file in Notepadnext while it's not running. You can do in Terminal:
open -a Notepadnext /path/to/a/text/file.
Result: ONLY the given permanent file is opened. The tab with temporary file is not restored. If I close the text file or quit again, then open again, the temporary file cannot be restored, so we can conclude it is permanently lost.
Expectation: Restore previous session including temporary files, then open the given permanent file in a new tab in addition to previous session. (If the previous session already contains the permanent file in a tab, then switch to it.)
Additional Details
It looks like this bug only happens when there are ONLY "temporary files" in the previous session. If the previous session contains permanent files open as tabs, then the previous session (including temporary files) is restored correctly in addition to opening the given text file.