# Wayland: avoid replacing text with empty string \(\#8103\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 946f4a312aa592c4fe4995c5b3f543b7523d2ea0

Requested commit: 946f4a312aa592c4fe4995c5b3f543b7523d2ea0

Commit: 946f4a312aa592c4fe4995c5b3f543b7523d2ea0

Tree: 4501005aa8e26fb122bb195ecb3210cc4cf06a9e

Author: Rom Grk

Committer: GitHub

## Message

```
Wayland: avoid replacing text with empty string (#8103)

Fix an issue where the `ime_key` is sometimes an empty string, and
pressing a keystroke replaces the selected text.

E.g. select some text, press `Escape`: selected text is deleted.
```

## Parents

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

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