瀏覽代碼

Use do-while instead of while

master
Arun Prakash Jana 4 年之前
父節點
當前提交
feec63ebb3
沒有發現已知的金鑰在資料庫的簽署中 GPG Key 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


Loading…
取消
儲存