Add counts to subsitute (and all)

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Conrad Irwin 2023-06-22 10:34:51 -06:00
parent e1f975e52e
commit 16022e9c1a
3 changed files with 6 additions and 2 deletions

View file

@ -484,7 +484,7 @@ pub fn substitute(vim: &mut Vim, count: usize, cx: &mut WindowContext) {
let selections = editor.selections.all::<Point>(cx);
for selection in selections.into_iter().rev() {
let end = if selection.start == selection.end {
selection.start + Point::new(0, 1)
selection.start + Point::new(0, count as u32)
} else {
selection.end
};