From fc70aa96c74cbb5ea2b5c9721c777b076b11a8d2 Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 14 Dec 2008 14:31:08 +0900 Subject: [PATCH] Fix for windows. io.expandPath("~\\vimperator") does not work on windows. --- common/content/io.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/io.js b/common/content/io.js index 0a41a70d..88d13d71 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -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") ||