mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 07:12:28 +01:00
error message for non-existing :cd dir
This commit is contained in:
@@ -118,10 +118,11 @@ vimperator.IO = function ()//{{{
|
||||
else
|
||||
{
|
||||
newdir = this.expandPath(newdir);
|
||||
if (!this.getFile(newdir).isDirectory())
|
||||
var file = this.getFile(newdir);
|
||||
if (!file.exists() || !file.isDirectory())
|
||||
{
|
||||
vimperator.echoerr("E344: Can't find directory \"" + newdir + "\" in path");
|
||||
return this.getCurrentDirectory();
|
||||
return null;
|
||||
}
|
||||
[cwd, oldcwd] = [newdir, cwd];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user