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") ||