瀏覽代碼

Fix KEY_RESIZE loop

master
Arun Prakash Jana 5 年之前
父節點
當前提交
5734f49126
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: A75979F35C080412
共有 1 個文件被更改,包括 7 次插入9 次删除
  1. +7
    -9
      src/nnn.c

+ 7
- 9
src/nnn.c 查看文件

@@ -588,22 +588,20 @@ static void printprompt(const char *str)

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

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


Loading…
取消
儲存