From 2b91b19ef396492a4c8b9a7be1fb894cda8d1ca7 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Mon, 22 Apr 2024 17:51:12 +0200 Subject: [PATCH] fix test test_column_to_char_ignore_nonspacing_mark_charaters --- src/ui/bigtext/line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/bigtext/line.py b/src/ui/bigtext/line.py index 1929757..8bc7951 100644 --- a/src/ui/bigtext/line.py +++ b/src/ui/bigtext/line.py @@ -116,7 +116,7 @@ class Line: # todo there are many other character combinations that should be skipped while i < len(self._line) and unicodedata.category(self._line[i]) == "Mn": self._char_to_column_cache[i] = result - 1 - if not result in self._column_to_char_cache: + if (result - 1) not in self._column_to_char_cache: self._column_to_char_cache[result - 1] = i i = i + 1