diff options
Diffstat (limited to 'src/windows.py')
-rw-r--r-- | src/windows.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py index e3a8d136..f0911086 100644 --- a/src/windows.py +++ b/src/windows.py @@ -946,8 +946,12 @@ class TextWin(Win): def resize(self, height, width, y, x, room=None): with g_lock: + if hasattr(self, 'width'): + old_width = self.width + else: + old_width = None self._resize(height, width, y, x) - if room: + if room and self.width != old_width: self.rebuild_everything(room) def rebuild_everything(self, room): |