From c55f1991438a891208b352a36ea15c2d8dc321c9 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 14 May 2011 01:21:59 +0200 Subject: fixes #2171, fixes #2173, also set a minimum size (< 5 lines crashes poezio when resizing) --- src/windows.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/windows.py') 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): """ -- cgit v1.2.3