Commit c0df35f3 authored by mathieui's avatar mathieui

Fix a bug in message edition

(out of bounds access for no reason)
parent 525edff6
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment