# Fix yank around paragraph missing newline \(\#43583\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/575ea49aade6a1224ae2f016678893d55a0ee1cf)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 575ea49aade6a1224ae2f016678893d55a0ee1cf

Requested commit: 575ea49aade6a1224ae2f016678893d55a0ee1cf

Commit: 575ea49aade6a1224ae2f016678893d55a0ee1cf

Tree: e5bf2b0f6baea362ab379e7a3a7f4bffb42dfa6f

Author: Ramon

Committer: GitHub

## Message

```
Fix yank around paragraph missing newline (#43583)

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>
```

## Parents

- [85ccd7c98b0b35381ef77c7383995e892db0689f](https://git.cafe/gitcafe/zed/commit/85ccd7c98b0b35381ef77c7383995e892db0689f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/575ea49aade6a1224ae2f016678893d55a0ee1cf?format=markdown)
