fix a crash on resize of size 0×0

parent 073972a5
......@@ -56,6 +56,8 @@ class Win(object):
def _resize(self, height, width, y, x, parent_win):
if height == 0 or width == 0:
self.height, self.width, self.x, self.y = height, width, x, y
self._win = curses.newwin(height, width, y, x)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment