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

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

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

Visibility: public

Requested revision: c872f581d14ab26b113ae25a0f930edd8ca0c700

Requested commit: c872f581d14ab26b113ae25a0f930edd8ca0c700

Commit: c872f581d14ab26b113ae25a0f930edd8ca0c700

Tree: 83b9f4c5480fb61ed470742578b227e103df16b9

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Query `rect_for_text_range` on focused view instead of root element

This was causing IME input to be drawn in the wrong place when there
were splits or panels in the window.

```

## Parents

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

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