Fix clipping when dragging the mouse with vim-mode enabled and adjust single line editor selections
This commit is contained in:
parent
c2868a39e8
commit
1cfaac1bc5
9 changed files with 36 additions and 43 deletions
|
@ -31,7 +31,7 @@ pub fn change_over(vim: &mut Vim, motion: Motion, cx: &mut MutableAppContext) {
|
|||
editor.insert(&"", cx);
|
||||
});
|
||||
});
|
||||
vim.switch_mode(Mode::Insert, cx)
|
||||
vim.switch_mode(Mode::Insert, false, cx)
|
||||
}
|
||||
|
||||
// From the docs https://vimhelp.org/change.txt.html#cw
|
||||
|
@ -70,7 +70,7 @@ fn change_word(
|
|||
editor.insert(&"", cx);
|
||||
});
|
||||
});
|
||||
vim.switch_mode(Mode::Insert, cx);
|
||||
vim.switch_mode(Mode::Insert, false, cx);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue