mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-20 02:05:46 +01:00
Normalize path on :cd
This commit is contained in:
@@ -119,6 +119,7 @@ function IO() //{{{
|
|||||||
{
|
{
|
||||||
let path = ioManager.getFile(head);
|
let path = ioManager.getFile(head);
|
||||||
path.appendRelativePath(ioManager.expandPath(tail)); // FIXME: should only expand env vars and normalise path separators
|
path.appendRelativePath(ioManager.expandPath(tail)); // FIXME: should only expand env vars and normalise path separators
|
||||||
|
path.normalize();
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -894,8 +895,7 @@ lookup:
|
|||||||
// FIXME: messages need to be able to specify
|
// FIXME: messages need to be able to specify
|
||||||
// whether they can be cleared/overwritten or
|
// whether they can be cleared/overwritten or
|
||||||
// should be appended to and the MOW opened
|
// should be appended to and the MOW opened
|
||||||
liberator.echoerr("Error detected while processing " + file.path,
|
liberator.echoerr("Error detected while processing " + file.path, commandline.FORCE_MULTILINE);
|
||||||
commandline.FORCE_MULTILINE);
|
|
||||||
commandline.echo("line " + lineNumber + ":", commandline.HL_LINENR, commandline.APPEND_TO_MESSAGES);
|
commandline.echo("line " + lineNumber + ":", commandline.HL_LINENR, commandline.APPEND_TO_MESSAGES);
|
||||||
liberator.echoerr("E492: Not an editor command: " + line);
|
liberator.echoerr("E492: Not an editor command: " + line);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user