From: Francois Fleuret Date: Fri, 11 Feb 2011 08:07:10 +0000 (+0100) Subject: Ignore keys generated by a tty (xterm) resizing. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=5464c060d3f4e004dd643507ab179117773fe822;p=selector.git Ignore keys generated by a tty (xterm) resizing. --- diff --git a/selector.c b/selector.c index e635029..d09f472 100644 --- a/selector.c +++ b/selector.c @@ -1240,6 +1240,10 @@ int main(int argc, char **argv) { done = 1; } + else if(key == KEY_RESIZE || key == -1) { + /* Do nothing when the tty is resized */ + } + else { /* Unknown key */ error_feedback();