Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
vim: Fix character count in visual line mode (#28669)
5brian6254efe39dc9
diff --git a/crates/go_to_line/src/cursor_position.rs b/crates/go_to_line/src/cursor_position.rsindex 7c43be9c1b5..9173be660be 100644--- a/crates/go_to_line/src/cursor_position.rs+++ b/crates/go_to_line/src/cursor_position.rs@@ -99,7 +99,7 @@ impl CursorPosition {let mut last_selection = None::<Selection<Point>>;let snapshot = editor.buffer().read(cx).snapshot(cx);if snapshot.excerpts().count() > 0 {- for selection in editor.selections.all::<Point>(cx) {+ for selection in editor.selections.all_adjusted(cx) {let selection_summary = snapshot.text_summary_for_range::<text::TextSummary, _>(selection.start..selection.end,