# Fix crash in apply text buffer operations found when opening a channel notes \(\#51978\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c1cbea10e9dd3f98d0b4db1501eac3a6e6ae1ca9

Requested commit: c1cbea10e9dd3f98d0b4db1501eac3a6e6ae1ca9

Commit: c1cbea10e9dd3f98d0b4db1501eac3a6e6ae1ca9

Tree: 52687fce1bbb30deb7edeea9f4b2340415c2c46d

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix crash in apply text buffer operations found when opening a channel notes (#51978)

To do

* [x] turn the operations from collab into a failing test
* [x] fix the crash
* [ ] turn the huge set of operations into a succinct test that can be
checked in on main

Release Notes:

- N/A

---------

Co-authored-by: Ben Kunkle <ben@zed.dev>
```

## Parents

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

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