From e9dcf368ad3c6e4b77f2c8f2498ecef9621793fe Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 16 Dec 2008 12:06:15 -0500 Subject: [PATCH] Normalize path on :cd --- common/content/io.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/content/io.js b/common/content/io.js index 1681ea23..8423e5ff 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -119,6 +119,7 @@ function IO() //{{{ { let path = ioManager.getFile(head); path.appendRelativePath(ioManager.expandPath(tail)); // FIXME: should only expand env vars and normalise path separators + path.normalize(); return path; } @@ -894,8 +895,7 @@ lookup: // FIXME: messages need to be able to specify // whether they can be cleared/overwritten or // should be appended to and the MOW opened - liberator.echoerr("Error detected while processing " + file.path, - commandline.FORCE_MULTILINE); + liberator.echoerr("Error detected while processing " + file.path, commandline.FORCE_MULTILINE); commandline.echo("line " + lineNumber + ":", commandline.HL_LINENR, commandline.APPEND_TO_MESSAGES); liberator.echoerr("E492: Not an editor command: " + line); }