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
1 changed files with 85 additions and 84 deletions

View File

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