Преглед на файлове

Fix KEY_RESIZE loop

master
Arun Prakash Jana преди 5 години
родител
ревизия
5734f49126
No known key found for this signature in database 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


||||||
x
 
000:0
Loading…
Отказ
Запис