소스 검색

Use do-while instead of while

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

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

@@ -712,20 +712,20 @@ static void printinfoln(const char *str)

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

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


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