# Strip carriage returns from all text in text::Buffer · gitcafe/zed

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

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

Visibility: public

Requested revision: 7e9beaf4bbe8dc8ca966a256eedc5d024741f1a9

Requested commit: 7e9beaf4bbe8dc8ca966a256eedc5d024741f1a9

Commit: 7e9beaf4bbe8dc8ca966a256eedc5d024741f1a9

Tree: f7ccbf0007a0beca9c41acb6dc0421785fb2e978

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Strip carriage returns from all text in text::Buffer

* Moving the logic from Rope to text::Buffer makes it easier
  to keep the Rope in sync with the fragment tree.
* Removing carriage return characters is lossier, but is much
  simpler than incrementally maintaining the invariant that
  there are no carriage returns followed by newlines. We may
  want to do something smarter in the future.

Co-authored-by: Keith Simmons <keith@zed.dev>

```

## Parents

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

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