# editor: Fix cuts on end of line cutting whole line \(\#34553\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a94b0931c7394cee09438176fee20986fd929aee

Requested commit: a94b0931c7394cee09438176fee20986fd929aee

Commit: a94b0931c7394cee09438176fee20986fd929aee

Tree: eebc33388dd05fe4ec156ef18c6884fd9d21d813

Author: AidanV

Committer: GitHub

## Message

````
editor: Fix cuts on end of line cutting whole line (#34553)

Closes #19816

Release Notes:

- Improved `ctrl-k` (`editor::CutToEndOfLine`) behavior when used at the
end of lines
- Add option to make `editor::CutToEndOfLine` not gobble newlines.
   ```json
   {
     "context": "Editor",
"bindings": { "ctrl-k": ["editor::CutToEndOfLine", { "stop_at_newlines":
true }] }
   },
   ```

---------

Co-authored-by: Peter Tripp <peter@zed.dev>
````

## Parents

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

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