Fix a bug in message edition
(out of bounds access for no reason)
This commit is contained in:
parent
525edff66f
commit
c0df35f3b3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue