Ver código fonte

Use do-while instead of while

master
Arun Prakash Jana 5 anos atrás
pai
commit
feec63ebb3
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: A75979F35C080412
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      src/nnn.c

+ 3
- 3
src/nnn.c Ver arquivo

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


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


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


||||||
x
 
000:0
Carregando…
Cancelar
Salvar