zed/crates/editor
zed-zippy[bot] 890b2ce267
Promote queued message to main editor on paste (#55780) (cherry-pick to preview) (#55785)
Cherry-pick of #55780 to preview

----
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

Co-authored-by: Agus Zubiaga <agus@zed.dev>
2026-05-05 15:31:10 +00:00
..
benches theme: Split out theme_settings crate (#52569) 2026-03-27 14:41:25 +01:00
src Promote queued message to main editor on paste (#55780) (cherry-pick to preview) (#55785) 2026-05-05 15:31:10 +00:00
Cargo.toml Fix line comment rewrap in golang and C/C++ (#54931) 2026-04-27 08:51:08 +00:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00