# Adjust IME action buffering to only apply to insert actions \(\#12702\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d3d0d01571f8ebf113fe0d988e89b5e20bec5002

Requested commit: d3d0d01571f8ebf113fe0d988e89b5e20bec5002

Commit: d3d0d01571f8ebf113fe0d988e89b5e20bec5002

Tree: 4b6549e97d4363bbe61dd3c468a61ecf4030a911

Author: Mikayla Maki

Committer: GitHub

## Message

```
Adjust IME action buffering to only apply to insert actions (#12702)

Follow up to https://github.com/zed-industries/zed/pull/12678
fixes https://github.com/zed-industries/zed/issues/11829

In this solution, we only buffer Insert Text actions from the macOS IME.
The marked text and unmark actions are eagerly processed, so that the
IME state is synchronized with the editor state during multi step
pre-edit composition.

Release Notes:

- Fixed an issue where the IME pre-edit could desynchronize from the
editor on macOS
([#11829](https://github.com/zed-industries/zed/pull/12651)).

Co-authored-by: Conrad <conrad@zed.dev>
```

## Parents

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

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