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