浏览代码

Simplify get_input()

master
Arun Prakash Jana 4 年前
父节点
当前提交
4a2d978630
找不到此签名对应的密钥 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;


正在加载...
取消
保存