Просмотр исходного кода

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

master
lostd 11 лет назад
Родитель
Сommit
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();


Загрузка…
Отмена
Сохранить