diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2018-10-21 20:04:17 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2018-10-21 20:04:38 +0200 |
commit | efdff01da87a4174c079d21a63df16af47401fa5 (patch) | |
tree | 4ab8acbca9e54eafa0bece1af05ba7de0b26bbeb | |
parent | 65064ceed10acdb09f7f6a26f4ab743e2a5e8086 (diff) | |
download | calcurse-efdff01da87a4174c079d21a63df16af47401fa5.tar.gz calcurse-efdff01da87a4174c079d21a63df16af47401fa5.zip |
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>
-rw-r--r-- | src/getstring.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/getstring.c b/src/getstring.c index d558331..6546565 100644 --- a/src/getstring.c +++ b/src/getstring.c @@ -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; |