summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/windows.py b/src/windows.py
index 682d6487..744443b6 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -56,6 +56,8 @@ class Win(object):
pass
def _resize(self, height, width, y, x, parent_win):
+ if height == 0 or width == 0:
+ return
self.height, self.width, self.x, self.y = height, width, x, y
self._win = curses.newwin(height, width, y, x)