summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2018-10-21 20:04:17 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2018-10-21 20:04:38 +0200
commitefdff01da87a4174c079d21a63df16af47401fa5 (patch)
tree4ab8acbca9e54eafa0bece1af05ba7de0b26bbeb /src
parent65064ceed10acdb09f7f6a26f4ab743e2a5e8086 (diff)
downloadcalcurse-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>
Diffstat (limited to 'src')
-rw-r--r--src/getstring.c3
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;