소스 검색

Simplify get_input()

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

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

@@ -822,22 +822,22 @@ static inline bool xconfirm(int c)

static int get_input(const char *prompt)
{
int r;

if (prompt)
printmsg(prompt);
cleartimeout();

int r = getch();

#ifdef KEY_RESIZE
do {
r = getch();
if (r == KEY_RESIZE && prompt) {
while (r == KEY_RESIZE) {
if (prompt) {
clearoldprompt();
xlines = LINES;
printmsg(prompt);
}
} while (r == KEY_RESIZE);
#else
r = getch();
r = getch();
}
#endif
settimeout();
return r;


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