1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 17:14:13 +01:00

Normalize path on :cd

This commit is contained in:
Kris Maglione
2008-12-16 12:06:15 -05:00
parent b0a9411512
commit e9dcf368ad

View File

@@ -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);
}