mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Refactor
This commit is contained in:
parent
7677cd4417
commit
0f1e648032
|
@ -2327,7 +2327,9 @@ static char *xreadline(const char *prefill, const char *prompt)
|
|||
move(xlines - 1, x + wcswidth(buf, pos));
|
||||
|
||||
r = get_wch(ch);
|
||||
if (r != ERR) {
|
||||
if (r == ERR)
|
||||
continue;
|
||||
|
||||
if (r == OK) {
|
||||
switch (*ch) {
|
||||
case KEY_ENTER: // fallthrough
|
||||
|
@ -2377,7 +2379,7 @@ static char *xreadline(const char *prefill, const char *prompt)
|
|||
}
|
||||
} else {
|
||||
switch (*ch) {
|
||||
#ifdef KEY_RESIZE
|
||||
#ifdef KE
|
||||
case KEY_RESIZE:
|
||||
clearoldprompt();
|
||||
xlines = LINES;
|
||||
|
@ -2417,7 +2419,6 @@ static char *xreadline(const char *prefill, const char *prompt)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
END:
|
||||
curs_set(FALSE);
|
||||
|
|
Loading…
Reference in a new issue