ソースを参照

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;


読み込み中…
キャンセル
保存