-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
Description of the Issue
When notepad++ is used on a portable drive, it would be a great benefit to make all session references to files on the same drive relative rather than absolute paths. This is perhaps an extension of issue #1587.
Steps to Reproduce the Issue
- Use portable Notepad++ on a removable drive. Save some files on same removable drive.
- Close Notepad++, saving session and backups.
- Do something which causes the drive to have another drive letter - move to another computer, insert another removable drive, etc.
- Launch Notepad++ again.
Expected Behavior
Notepad++ launches with saved session, including all the previously open files on the same removable drive.
Actual Behavior
Notepad++ finds that it can't locate the files from the saved session, and opens an empty session instead.
If you have sufficient user privileges and nothing open on any conflicting disk, you can work around this by going into Disk Management and changing drive letters around - but only if you remember to do that before launching Notepad++. If you launch Notepad++ first and then remember you needed to do that, it's too late - the saved session file has been overwritten with a blank one.