ソースを参照

Fix KEY_RESIZE loop

master
Arun Prakash Jana 5年前
コミット
5734f49126
この署名に対応する既知のキーがデータベースに存在しません GPGキー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


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