This commit is contained in:
Arun Prakash Jana 2020-01-19 21:24:33 +05:30
parent 7677cd4417
commit 0f1e648032
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -2327,7 +2327,9 @@ static char *xreadline(const char *prefill, const char *prompt)
move(xlines - 1, x + wcswidth(buf, pos)); move(xlines - 1, x + wcswidth(buf, pos));
r = get_wch(ch); r = get_wch(ch);
if (r != ERR) { if (r == ERR)
continue;
if (r == OK) { if (r == OK) {
switch (*ch) { switch (*ch) {
case KEY_ENTER: // fallthrough case KEY_ENTER: // fallthrough
@ -2377,7 +2379,7 @@ static char *xreadline(const char *prefill, const char *prompt)
} }
} else { } else {
switch (*ch) { switch (*ch) {
#ifdef KEY_RESIZE #ifdef KE
case KEY_RESIZE: case KEY_RESIZE:
clearoldprompt(); clearoldprompt();
xlines = LINES; xlines = LINES;
@ -2417,7 +2419,6 @@ static char *xreadline(const char *prefill, const char *prompt)
} }
} }
} }
}
END: END:
curs_set(FALSE); curs_set(FALSE);