ソースを参照

Don't attempt to go back if on the relative root

master
lostd 11年前
コミット
9407399230
1個のファイルの変更3行の追加1行の削除
  1. +3
    -1
      noice.c

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

@@ -658,7 +658,9 @@ nochange:
return;
case SEL_BACK:
/* There is no going back */
if (strcmp(path, "/") == 0)
if (strcmp(path, "/") == 0 ||
strcmp(path, ".") == 0 ||
strchr(path, '/') == NULL)
goto nochange;
if (canopendir(path) == 0) {
printwarn();


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