Increment char_index by grapheme char count.
It was just assuming single-char graphemes before.
This commit is contained in:
parent
0cbaa998ce
commit
481c4ba044
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ impl EditorView {
|
|||
visual_x += width;
|
||||
}
|
||||
|
||||
char_index += 1;
|
||||
char_index += grapheme.chars().count();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue