Closed goetzc closed 6 years ago
If the variable is not defined, the call returns nil
Maybe add a fallback os.getenv("HOME") or '/'
Also I think the comment could be improved to something like --fallback if no file is open - should be a string that points to a path in your system
If the variable is not defined, the call returns nil Maybe add a fallback os.getenv("HOME") or '/'
Haven't seen such a case, but I just added it.
This changes the default path to use the users HOME environment variables value, instead of /.
Cheers