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

Use do-while instead of while

master
Arun Prakash Jana преди 4 години
родител
ревизия
feec63ebb3
No known key found for this signature in database GPG Key ID: A75979F35C080412
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. +3
    -3
      src/nnn.c

+ 3
- 3
src/nnn.c Целия файл

@@ -712,20 +712,20 @@ static void printinfoln(const char *str)

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

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


Loading…
Отказ
Запис