# Promote queued message to main editor on paste \(\#55780\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f5bd159ab8affcca4b62fb903644723352165146

Requested commit: f5bd159ab8affcca4b62fb903644723352165146

Commit: f5bd159ab8affcca4b62fb903644723352165146

Tree: a7be900de0cfdafc4592716ab0caf8bc697c8388

Author: Agus Zubiaga

Committer: GitHub

## Message

```
Promote queued message to main editor on paste (#55780)

Pasting text or an image into a queued-message editor used to be a
silent no-op for text and a panic for images.

This change makes pasting into a queued message behave like typing into
one: the queued message is promoted into the main editor at the cursor
position, and the paste is then applied there.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #55521

Release Notes:

- Fixed a crash when pasting an image into a queued message
```

## Parents

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

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