Ignore keys generated by a tty (xterm) resizing.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 11 Feb 2011 08:07:10 +0000 (09:07 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 11 Feb 2011 08:07:10 +0000 (09:07 +0100)
selector.c

index e635029..d09f472 100644 (file)
@@ -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();