Quellcode durchsuchen

Use do-while instead of while

master
Arun Prakash Jana vor 4 Jahren
Ursprung
Commit
feec63ebb3
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: A75979F35C080412
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. +3
    -3
      src/nnn.c

+ 3
- 3
src/nnn.c Datei anzeigen

@@ -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


Laden…
Abbrechen
Speichern