소스 검색

We don't want to exit the typing mode because of an error

Delay displaying the message until return is pressed.
Also contain all printwarn() calls inside browse().
master
lostd 10 년 전
부모
커밋
4db0d0dae0
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. +5
    -5
      noice.c

+ 5
- 5
noice.c 파일 보기

@@ -578,10 +578,8 @@ populate(void)
int r;

/* Can fail when permissions change while browsing */
if (canopendir(path) == 0) {
printwarn();
if (canopendir(path) == 0)
return -1;
}

/* Search filter */
r = setfilter(&re, fltr);
@@ -666,8 +664,10 @@ begin:
/* Path and filter should be malloc(3)-ed strings at all times */
r = populate();
if (r == -1) {
nowtyping = 0;
goto nochange;
if (!nowtyping) {
printwarn();
goto nochange;
}
}

for (;;) {


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