# Don't hold platform lock while calling user callbacks \(\#4027\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7c817642b8e2fa304c0d9e9ca42ee1e04ceb3936

Requested commit: 7c817642b8e2fa304c0d9e9ca42ee1e04ceb3936

Commit: 7c817642b8e2fa304c0d9e9ca42ee1e04ceb3936

Tree: 07b3d4c61f6b8d3487dd123331af873da4495fcc

Author: Conrad Irwin

Committer: GitHub

## Message

```
Don't hold platform lock while calling user callbacks (#4027)

Inspired by a bug where using Edit -> Copy from the menu created a
deadlock.

Release Notes:

- Fix a deadlock when copying from Edit -> Copy
```

## Parents

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

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

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