Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
vim: o should scroll (#20054)
Conrad Irwindaa9939c039a
diff --git a/crates/vim/src/visual.rs b/crates/vim/src/visual.rsindex 72474d3ae40..71c8947f59c 100644--- a/crates/vim/src/visual.rs+++ b/crates/vim/src/visual.rs@@ -416,7 +416,7 @@ impl Vim {pub fn other_end(&mut self, _: &OtherEnd, cx: &mut ViewContext<Self>) {self.update_editor(cx, |_, editor, cx| {- editor.change_selections(None, cx, |s| {+ editor.change_selections(Some(Autoscroll::fit()), cx, |s| {s.move_with(|_, selection| {selection.reversed = !selection.reversed;})