fix test test_column_to_char_ignore_nonspacing_mark_charaters

This commit is contained in:
2024-04-22 17:51:12 +02:00
parent 9c1b8298be
commit 2b91b19ef3

View File

@@ -116,7 +116,7 @@ class Line:
# todo there are many other character combinations that should be skipped # todo there are many other character combinations that should be skipped
while i < len(self._line) and unicodedata.category(self._line[i]) == "Mn": while i < len(self._line) and unicodedata.category(self._line[i]) == "Mn":
self._char_to_column_cache[i] = result - 1 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 self._column_to_char_cache[result - 1] = i
i = i + 1 i = i + 1