# Remove CharKind::Newline · gitcafe/zed

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

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

Visibility: public

Requested revision: 210fa4c4431e8d00a4c7470ec44c385bf3a18d34

Requested commit: 210fa4c4431e8d00a4c7470ec44c385bf3a18d34

Commit: 210fa4c4431e8d00a4c7470ec44c385bf3a18d34

Tree: d711b4b64a28fe58b69c9a4e5d542661ec7f0b09

Author: Nathan Sobo

Committer: Nathan Sobo

## Message

```
Remove CharKind::Newline

This is just a character, and so it seems clearer to refer to it specifically when we want to know if a character is a newline. There was only one case where we relied on Newline being different from Whitespace, and we special-cased that instance. Changing this actually makes us match the behavior of VS Code when double-clicking runs of multiple newlines.

/cc @as-cii

Co-Authored-By: Keith Simmons <keith@the-simmons.net>

```

## Parents

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

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