vim: Fix deletion with sentence-motion (#22289)
Fixes #22151. Turns out Vim also has some weird behavior with sentence deletion in case it's on the first character of a line. Release Notes: - vim: Fixed deleting sentence-wise (i.e. `d(` and `d)`), which would previously delete the whole line instead of just a sentence.
This commit is contained in:
parent
7c03e11cfc
commit
b25d8ecb75
3 changed files with 98 additions and 14 deletions
|
@ -585,8 +585,6 @@ impl Motion {
|
|||
| NextLineStart
|
||||
| PreviousLineStart
|
||||
| StartOfLineDownward
|
||||
| SentenceBackward
|
||||
| SentenceForward
|
||||
| StartOfParagraph
|
||||
| EndOfParagraph
|
||||
| WindowTop
|
||||
|
@ -611,6 +609,8 @@ impl Motion {
|
|||
| Left
|
||||
| Backspace
|
||||
| Right
|
||||
| SentenceBackward
|
||||
| SentenceForward
|
||||
| Space
|
||||
| StartOfLine { .. }
|
||||
| EndOfLineDownward
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue