mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:47:58 +01:00
Fix for windows.
io.expandPath("~\\vimperator") does not work on windows.
This commit is contained in:
@@ -421,7 +421,7 @@ function IO() //{{{
|
|||||||
path = expand(path);
|
path = expand(path);
|
||||||
|
|
||||||
// expand ~
|
// expand ~
|
||||||
if (/^~(?:$|\/)/.test(path))
|
if ((WINDOWS ? /^~(?:$|\\)/ : /^~(?:$|\/)/).test(path))
|
||||||
{
|
{
|
||||||
// Try $(VIMPERATOR|MUTTATOR)_HOME || $HOME first, on all systems
|
// Try $(VIMPERATOR|MUTTATOR)_HOME || $HOME first, on all systems
|
||||||
let home = environmentService.get(config.name.toUpperCase() + "_HOME") ||
|
let home = environmentService.get(config.name.toUpperCase() + "_HOME") ||
|
||||||
|
|||||||
Reference in New Issue
Block a user