summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/windows.py b/src/windows.py
index 1bab7777..c9ba0f61 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -945,10 +945,10 @@ class TextWin(Win):
(instead of rebuilding everything in order to correct a message)
"""
with_timestamps = config.get("show_timestamps", 'true') != 'false'
- for i in range(len(self.built_lines)-1, 0, -1):
- if self.built_lines[i].msg.identifier == old_id:
+ for i in range(len(self.built_lines)-1, -1, -1):
+ if self.build_lines[i] and self.built_lines[i].msg.identifier == old_id:
index = i
- while index > 0 and self.built_lines[index].msg.identifier == old_id:
+ while index >= 0 and self.built_lines[index].msg.identifier == old_id:
self.built_lines.pop(index)
index -= 1
index += 1