Commits

Steven Myint  committed 3acb2d0

Avoid crashing on terminal resize (on OS X)

This fixes issue #65. The problem usually presents itself when the terminal is
resized quickly.

  • Participants
  • Parent commits c921fc4
  • Branches 0.12-bugfix

Comments (0)

Files changed (1)

File bpython/cli.py

     curses.doupdate()
     DO_RESIZE = False
 
-    caller.resize()
+    try:
+        caller.resize()
+    except curses.error:
+        pass
     # The list win resizes itself every time it appears so no need to do it here.