Sfoglia il codice sorgente

Fix KEY_RESIZE loop

master
Arun Prakash Jana 5 anni fa
parent
commit
5734f49126
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: A75979F35C080412
1 ha cambiato i file con 7 aggiunte e 9 eliminazioni
  1. +7
    -9
      src/nnn.c

+ 7
- 9
src/nnn.c Vedi File

@@ -588,22 +588,20 @@ static void printprompt(const char *str)

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

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


Loading…
Annulla
Salva