Procházet zdrojové kódy

Fix KEY_RESIZE loop

master
Arun Prakash Jana před 5 roky
rodič
revize
5734f49126
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: A75979F35C080412
1 změnil soubory, kde provedl 7 přidání a 9 odebrání
  1. +7
    -9
      src/nnn.c

+ 7
- 9
src/nnn.c Zobrazit soubor

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


Načítá se…
Zrušit
Uložit