diff options
-rw-r--r-- | poezio/windows/text_win.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/windows/text_win.py b/poezio/windows/text_win.py index ce52e29d..a1b12ae9 100644 --- a/poezio/windows/text_win.py +++ b/poezio/windows/text_win.py @@ -328,7 +328,8 @@ class TextWin(Win): ): self.built_lines.pop(index) index -= 1 - current = self.built_lines[index] + if index >= 0: + current = self.built_lines[index] index += 1 lines = build_lines( message, self.width, timestamp=with_timestamps, nick_size=nick_size |