# Handle autoclose when composing text \(\#7611\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 775bce3e1a3918067a771873285b83b538a35ebd

Requested commit: 775bce3e1a3918067a771873285b83b538a35ebd

Commit: 775bce3e1a3918067a771873285b83b538a35ebd

Tree: 2b2e94c28d5fa09b8015eebae5304c9f9f499de8

Author: Thorsten Ball

Committer: GitHub

## Message

```
Handle autoclose when composing text (#7611)

This fixes two annoyances when composing text and autoclose is enabled.

Example: use a Brazilian keyboard and type `"`, which triggers a
dead-key state.

Previously when a user would type `"<space>` to get a quote, we'd end up
with 4 quotes.

When text was selected and a user then typed `"<space>` the selected
text would be deleted.

This commit fixes both of these issues.

Fixes https://github.com/zed-industries/zed/issues/4298

Release Notes:

- Fixed autoclose behavior not working when composing text via IME (e.g.
using quotes on a Brazilian keyboard)
([#4298](https://github.com/zed-industries/zed/issues/4298)).

Co-authored-by: Antonio <antonio@zed.dev>
Co-authored-by: bennetbo <bennetbo@gmx.de>
```

## Parents

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

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