Use `MotionKind::LineWise` in both `vim::normal::change::Vim.change_object` and `vim::normal::yank::Vim.yank_object` when dealing with objects that target `Mode::VisualLine`, for example, paragraphs. This fixes an issue where yanking and changing paragraphs would not include the trailing newline character. Closes #28804 Release Notes: - Fixed linewise text object operations (`yap`, `cap`, etc.) omitting trailing blank line in vim mode --------- Co-authored-by: dino <dinojoaocosta@gmail.com>
9 lines
417 B
JSON
9 lines
417 B
JSON
{"Put":{"state":"first paragraph\nˇstill first\n\nsecond paragraph\nstill second\n\nthird paragraph\n"}}
|
|
{"Key":"c"}
|
|
{"Key":"a"}
|
|
{"Key":"p"}
|
|
{"Get":{"state":"ˇ\nsecond paragraph\nstill second\n\nthird paragraph\n","mode":"Insert"}}
|
|
{"ReadRegister":{"name":"\"","value":"first paragraph\nstill first\n\n"}}
|
|
{"Key":"escape"}
|
|
{"Get":{"state":"ˇ\nsecond paragraph\nstill second\n\nthird paragraph\n","mode":"Normal"}}
|