# Query \`rect_for_text_range\` on focused view instead of root element \(\#2564\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0ed8bbc818b88a513843f86ce63223f13256a81b

Requested commit: 0ed8bbc818b88a513843f86ce63223f13256a81b

Commit: 0ed8bbc818b88a513843f86ce63223f13256a81b

Tree: 83b9f4c5480fb61ed470742578b227e103df16b9

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Query `rect_for_text_range` on focused view instead of root element (#2564)

This was causing IME input to be drawn in the wrong place when there
were splits or panels in the window.

Release Notes:

- Fixed a bug that was causing IME input to sometimes be rendered in the
wrong position.
```

## Parents

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

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

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