diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index 5b752e0544..e5367e54f0 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -1023,6 +1023,8 @@ impl EditorElement { break; } visual_count += 1; + } else { + visual_count += 1; } buffer_rows.next();