fix a crash on resize of size 0×0
This commit is contained in:
parent
073972a5c0
commit
2e285cf426
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue