# editor: Wrap placeholder if text overflows \(\#37919\) · gitcafe/zed

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

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

Visibility: public

Requested revision: acb3406eb883929a28317356d6296ff5b1621091

Requested commit: acb3406eb883929a28317356d6296ff5b1621091

Commit: acb3406eb883929a28317356d6296ff5b1621091

Tree: 0b21d210e1264afacf69ef0a700d30f94b970ed4

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
editor: Wrap placeholder if text overflows (#37919)

This fixes an issue where long placeholders would be cut off, e.g. in a
Claude Code thread:

<img width="387" height="115" alt="image"
src="https://github.com/user-attachments/assets/831a54aa-cf2b-4d87-af86-e368a5936f6b"
/>

Now:

<img width="354" height="115" alt="image"
src="https://github.com/user-attachments/assets/e5df5e05-0869-4db2-8dee-38611263191c"
/>


Most of the changes in this PR are caused by us requiring `&mut Window`
in `set_placeholder_text`.

Release Notes:

- Fixed an issue where placeholders inside editors would not wrap

---------

Co-authored-by: Agus Zubiaga <agus@zed.dev>
```

## Parents

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

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