diff options
author | mathieui <mathieui@mathieui.net> | 2011-05-14 01:21:59 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-05-14 01:21:59 +0200 |
commit | c55f1991438a891208b352a36ea15c2d8dc321c9 (patch) | |
tree | 517d64b99883c8581d3146dcd32d7c4fa09b4f68 /src/windows.py | |
parent | bf5599d4d01e12659e3d01fc29587d503e66beb0 (diff) | |
download | poezio-c55f1991438a891208b352a36ea15c2d8dc321c9.tar.gz poezio-c55f1991438a891208b352a36ea15c2d8dc321c9.tar.bz2 poezio-c55f1991438a891208b352a36ea15c2d8dc321c9.tar.xz poezio-c55f1991438a891208b352a36ea15c2d8dc321c9.zip |
fixes #2171, fixes #2173, also set a minimum size (< 5 lines crashes poezio when resizing)
Diffstat (limited to 'src/windows.py')
-rw-r--r-- | src/windows.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/windows.py b/src/windows.py index df361ed8..c7c3bfa2 100644 --- a/src/windows.py +++ b/src/windows.py @@ -68,8 +68,9 @@ class Win(object): if not self._win: self._win = curses.newwin(height, width, y, x) else: - self._win.resize(height, width) - self._win.mvwin(y, x) + if height > 5 and width > 40: + self._win.resize(height, width) + self._win.mvwin(y, x) def resize(self, height, width, y, x): """ |