소스 검색

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();


불러오는 중...
취소
저장