From daa9939c039a4e19c89c4d374daea7b1e87c72de Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Thu, 31 Oct 2024 23:26:04 -0600 Subject: [PATCH] vim: o should scroll (#20054) Closes: #19684 Release Notes: - vim: Fixed `o` not scrolling new head into view --- crates/vim/src/visual.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/vim/src/visual.rs b/crates/vim/src/visual.rs index 72474d3ae407810e616940cabe6d5ae78f555c0a..71c8947f59c299dd4cba2f840433738533df2a28 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.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; })