소스 검색

Fix readline() call sequence

master
Arun Prakash Jana 6 년 전
부모
커밋
afafb7ef8f
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제
  1. +6
    -8
      src/nnn.c

+ 6
- 8
src/nnn.c 파일 보기

@@ -3822,33 +3822,31 @@ nochange:
spawn(shell, "-c", tmp, path, F_CLI);
#ifndef NORL
} else {
exitcurses();

/* Switch to current path for readline(3) */
if (chdir(path) == -1) {
printwarn();
goto nochange;
}

exitcurses();

tmp = readline("nnn> ");

refresh();

if (chdir(ipath) == -1) {
printwarn();
if (tmp)
free(tmp);
free(tmp);
goto nochange;
}

refresh();

if (tmp && tmp[0]) {
spawn(shell, "-c", tmp, path, F_CLI);
/* readline finishing touches */
add_history(tmp);
}

if (tmp)
free(tmp);
free(tmp);
}
#endif
}


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