From efdff01da87a4174c079d21a63df16af47401fa5 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 21 Oct 2018 20:04:17 +0200 Subject: Ignore resize and error keys in getstring() Partly addresses GitHub issue #145. Suggested-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/getstring.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3-70-g09d2