Fix input_box refresh() out of order resize
[canto-curses.git] / canto_curses / screen.py
index 5db9980..174e0c7 100644 (file)
@@ -653,8 +653,9 @@ Arguments:"""),
 
         if r == curses.KEY_BACKSPACE:
             r = ord("\b")
-
-        if chr(r) == '\t' and do_comp:
+        elif r == curses.KEY_RESIZE:
+            return
+        elif chr(r) == '\t' and do_comp:
             self.input_box.rotate_completions()
             return