mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 23:02:31 +02:00
Fix for windows.
io.expandPath("~\\vimperator") does not work on windows.
This commit is contained in:
1 parent
1d1c4d5936
commit
fc70aa96c7
1 file changed
+1
-1
@@ -421,7 +421,7 @@ function IO() //{{{
|
||||
path = expand(path);
|
||||
|
||||
// expand ~
|
||||
if (/^~(?:$|\/)/.test(path))
|
||||
if ((WINDOWS ? /^~(?:$|\\)/ : /^~(?:$|\/)/).test(path))
|
||||
{
|
||||
// Try $(VIMPERATOR|MUTTATOR)_HOME || $HOME first, on all systems
|
||||
let home = environmentService.get(config.name.toUpperCase() + "_HOME") ||
|
||||
|
||||
Reference in new issue
Block a user