# wayland: Fix input_handler out of range access \(\#10724\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 15c4c4a3080284b82ce91da1ad1f49fd9ac91df5

Requested commit: 15c4c4a3080284b82ce91da1ad1f49fd9ac91df5

Commit: 15c4c4a3080284b82ce91da1ad1f49fd9ac91df5

Tree: 177d34d60715600626b568d93a02d4e456403466

Author: Philipp Schaffrath

Committer: GitHub

## Message

```
wayland: Fix input_handler out of range access (#10724)

The wayland implementation takes an input handler from the state, but
only puts it back if the event was an IME key. I flipped the logic to
ensure it's always put back.

This should fix both:
- #10344
- #10652

Release Notes:

- Fixed input_handler out of range access
([#10344](https://github.com/zed-industries/zed/issues/10344),
[#10652](https://github.com/zed-industries/zed/issues/10652)).
```

## Parents

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

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