Closed JManch closed 1 year ago
Hi! Thank you for this fix, I sometimes forget Windows has C:\
as a prefix. The intended purpose of the :sub(2)
was to remove the single /
character on unix absolute paths, and I think it might be even better to use a :sub(4)
so the entire C:\
is stripped here. That way things are consistent between Windows and Unix-like systems.
Could you make that small update and make sure it works? Then I'll gladly merge this.
Oh yeah, that makes sense. I've tested it on sub(4) and it works fine.
Thanks for updating it!
I was getting the following error when attempting to save sessions with absolute = true on Windows:
There was an bug in the safe_path function causing paths on Windows to have a leading ":". Fix is to simply remove two characters instead of one if the OS is Windows.