# Fix panic on paste when editing with auto-indent · gitcafe/zed

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

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

Visibility: public

Requested revision: d3db700db421d2a505bb3a2d17863573608cc04d

Requested commit: d3db700db421d2a505bb3a2d17863573608cc04d

Commit: d3db700db421d2a505bb3a2d17863573608cc04d

Tree: 29fd282c731d875eae59e71fd5e1d79e780fa5ba

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Fix panic on paste when editing with auto-indent

Instead of accepting text as it's input by the user, we will read it
out of the edit operation after it gets sanitized by the buffer.

```

## Parents

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

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