vim: Fix 1G
Before this change code could not distinguish between a user providing a count of 1 and no count at all. Fixes: zed-industries/community#710
This commit is contained in:
parent
5291bf3d9f
commit
0cacf01f90
8 changed files with 49 additions and 26 deletions
|
@ -25,7 +25,7 @@ pub fn init(cx: &mut AppContext) {
|
|||
cx.add_action(paste);
|
||||
}
|
||||
|
||||
pub fn visual_motion(motion: Motion, times: usize, cx: &mut WindowContext) {
|
||||
pub fn visual_motion(motion: Motion, times: Option<usize>, cx: &mut WindowContext) {
|
||||
Vim::update(cx, |vim, cx| {
|
||||
vim.update_active_editor(cx, |editor, cx| {
|
||||
editor.change_selections(Some(Autoscroll::fit()), cx, |s| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue