diff options
author | mathieui <mathieui@mathieui.net> | 2021-04-15 18:26:37 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-15 18:28:42 +0200 |
commit | 56bab711924cd7a660c874abf40fd545693f8d98 (patch) | |
tree | d4e0bff66b3e94231badc097af01487b45278587 /poezio/windows | |
parent | b1b2ef860fbb6eaad63dae6fcb8a731ad595c474 (diff) | |
download | poezio-56bab711924cd7a660c874abf40fd545693f8d98.tar.gz poezio-56bab711924cd7a660c874abf40fd545693f8d98.tar.bz2 poezio-56bab711924cd7a660c874abf40fd545693f8d98.tar.xz poezio-56bab711924cd7a660c874abf40fd545693f8d98.zip |
fix: display issue when changing show_timestamps value
Diffstat (limited to 'poezio/windows')
-rw-r--r-- | poezio/windows/text_win.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/windows/text_win.py b/poezio/windows/text_win.py index 31dfb637..12d90e7d 100644 --- a/poezio/windows/text_win.py +++ b/poezio/windows/text_win.py @@ -146,14 +146,15 @@ class TextWin(Win): """ self.addstr_colored(txt, y, x) - def resize(self, height: int, width: int, y: int, x: int, room: TextBuffer=None) -> None: + def resize(self, height: int, width: int, y: int, x: int, + room: Optional[TextBuffer] = None, force: bool = False) -> None: old_width: Optional[int] if hasattr(self, 'width'): old_width = self.width else: old_width = None self._resize(height, width, y, x) - if room and self.width != old_width: + if room and (self.width != old_width or force): self.rebuild_everything(room) # reposition the scrolling after resize |