vim: Update vi{
(#24601)
Small fix: Following up on https://github.com/zed-industries/zed/pull/24518 where i missed `vi{`. Matching neovim(tree-sitter), `vi{` should not have the newline selected (Now `vi{d`/`vi{c` can match `di{`/`ci{`). Also moved the cursor to the start. |prev|new|neovim| |---|---|---| |||| Release Notes: - N/A
This commit is contained in:
parent
37785a54d5
commit
236f51cddd
3 changed files with 72 additions and 6 deletions
|
@ -16,7 +16,7 @@ use workspace::searchable::Direction;
|
|||
|
||||
use crate::{
|
||||
motion::{first_non_whitespace, next_line_end, start_of_line, Motion},
|
||||
object::Object,
|
||||
object::{self, Object},
|
||||
state::{Mode, Operator},
|
||||
Vim,
|
||||
};
|
||||
|
@ -375,6 +375,9 @@ impl Vim {
|
|||
} else {
|
||||
selection.end = range.end;
|
||||
}
|
||||
if !around && object.is_multiline() {
|
||||
object::preserve_indented_newline(map, selection);
|
||||
}
|
||||
}
|
||||
|
||||
// In the visual selection result of a paragraph object, the cursor is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue