Parcourir la source

Use do-while instead of while

master
Arun Prakash Jana il y a 4 ans
Parent
révision
feec63ebb3
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: A75979F35C080412
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. +3
    -3
      src/nnn.c

+ 3
- 3
src/nnn.c Voir le fichier

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


Chargement…
Annuler
Enregistrer