diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 4f1b4bcac..550ff181e 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -229,7 +229,7 @@ impl EditorView { visual_x += width; } - char_index += 1; + char_index += grapheme.chars().count(); } } }