Browse Source

Fix KEY_RESIZE loop

master
Arun Prakash Jana 5 years ago
parent
commit
5734f49126
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 7 additions and 9 deletions
  1. +7
    -9
      src/nnn.c

+ 7
- 9
src/nnn.c View File

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


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


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


||||||
x
 
000:0
Loading…
Cancel
Save