ソースを参照

Fix: can't go to parent if only dir name specified

Invoking nnn with:

nnn dir
nnn ./dir
nnn dir

wouldn't allow user to navigate to parent directory.
master
Arun Prakash Jana 8年前
コミット
86c3f75512
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: A75979F35C080412
1個のファイルの変更5行の追加1行の削除
  1. +5
    -1
      nnn.c

+ 5
- 1
nnn.c ファイルの表示

@@ -952,7 +952,11 @@ main(int argc, char *argv[])
printptr = &printent;

if (argv[1] != NULL) {
ipath = argv[1];
ipath = realpath(argv[1], cwd);
if (!ipath) {
fprintf(stderr, "%s: no such dir\n", argv[1]);
exit(1);
}
} else {
ipath = getcwd(cwd, sizeof(cwd));
if (ipath == NULL)


読み込み中…
キャンセル
保存