# Make Copy and Trim ignore empty lines, and fix vim line selections \(\#29019\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 72218f4a61d6c4e2e22ba858ae89523cada45e0e

Requested commit: 72218f4a61d6c4e2e22ba858ae89523cada45e0e

Commit: 72218f4a61d6c4e2e22ba858ae89523cada45e0e

Tree: 676808bbf84a548cc5f095e22091e5886b713a70

Author: redforks

Committer: GitHub

## Message

````
Make Copy and Trim ignore empty lines, and fix vim line selections (#29019)

Close #28519 

Release Notes:

Update `editor: copy and trim` command:

1. Ignore empty lines in the middle:

    ```
      Line 1

      Line 2
    ```

    Will copy text to clipboard:

    ```
    Line 1

    Line 2
    ```

    Before this commit trim not performed

1. Fix select use vim line selections, trim not works
````

## Parents

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

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