# vim: Fix visual line yank on newline char \(\#28005\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ea33d78ae42e966775ca5b1f20fbcc83401ab47e

Requested commit: ea33d78ae42e966775ca5b1f20fbcc83401ab47e

Commit: ea33d78ae42e966775ca5b1f20fbcc83401ab47e

Tree: e382b61e5d42d6c2caa5d26c862b40528db43ef3

Author: 5brian

Committer: GitHub

## Message

```
vim: Fix visual line yank on newline char (#28005)

Problem:
When yanking in visual line on the newline char, the next line gets
yanked as well:


https://github.com/user-attachments/assets/40f332dd-19f5-445f-a30f-39d50167c46f

Changes:
Similar to visual delete, exclude the newline char from the selection in
line mode.

Release Notes:

- vim: Fixed visual line yank while on the newline character yanking
following line
```

## Parents

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

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