fix test test_column_to_char_ignore_nonspacing_mark_charaters
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user