Ignore resize and error keys in getstring()
Partly addresses GitHub issue #145. Suggested-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
65064ceed1
commit
efdff01da8
@ -259,6 +259,9 @@ enum getstr getstring(WINDOW * win, char *str, int l, int x, int y)
|
||||
case CTRL('G'):
|
||||
return GETSTRING_ESC;
|
||||
break;
|
||||
case ERR:
|
||||
case KEY_RESIZE:
|
||||
continue;
|
||||
default: /* insert one character */
|
||||
c[0] = ch;
|
||||
for (k = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user