Procházet zdrojové kódy

Simplify get_input()

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

+ 8
- 8
src/nnn.c Zobrazit soubor

@@ -822,22 +822,22 @@ static inline bool xconfirm(int c)

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

if (prompt)
printmsg(prompt);
cleartimeout();

int r = getch();

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


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