Fix a bug in message edition

(out of bounds access for no reason)
This commit is contained in:
mathieui 2019-12-29 00:18:59 +01:00
parent 525edff66f
commit c0df35f3b3

View file

@ -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