ソースを参照

Show message when trying to go above /

master
Arun Prakash Jana 8年前
コミット
0aa1d43428
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: A75979F35C080412
1個のファイルの変更3行の追加1行の削除
  1. +3
    -1
      nnn.c

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

@@ -828,8 +828,10 @@ nochange:
/* There is no going back */
if (strcmp(path, "/") == 0 ||
strcmp(path, ".") == 0 ||
strchr(path, '/') == NULL)
strchr(path, '/') == NULL) {
printmsg("You are at /");
goto nochange;
}
dir = xdirname(path);
if (canopendir(dir) == 0) {
printwarn();


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