summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/windows/text_win.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/windows/text_win.py b/poezio/windows/text_win.py
index fbe3d2fa..9e6641f7 100644
--- a/poezio/windows/text_win.py
+++ b/poezio/windows/text_win.py
@@ -243,7 +243,7 @@ class TextWin(Win):
try:
pos = self.built_lines.index(hl)
except ValueError:
- self.highlights = self.highlights[self.hl_pos + 1:]
+ del self.highlights[self.hl_pos]
if not self.highlights:
self.hl_pos = float('nan')
self.pos = 0
@@ -277,7 +277,7 @@ class TextWin(Win):
try:
pos = self.built_lines.index(hl)
except ValueError:
- self.highlights = self.highlights[self.hl_pos + 1:]
+ del self.highlights[self.hl_pos]
if not self.highlights:
self.hl_pos = float('nan')
self.pos = 0