Explorar el Código

Use do-while instead of while

master
Arun Prakash Jana hace 5 años
padre
commit
feec63ebb3
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: A75979F35C080412
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      src/nnn.c

+ 3
- 3
src/nnn.c Ver fichero

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


Cargando…
Cancelar
Guardar