From be1387fee6c90fe8a77fd7b3e54aabb31ba7f30d Mon Sep 17 00:00:00 2001 From: aohanhongzhi <37319319+aohanhongzhi@users.noreply.github.com> Date: Wed, 17 Jul 2024 01:54:53 +0800 Subject: [PATCH] Fix text appearing twice after Chinese character input (#14558) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Release Notes: - Fixed the issue where text appears twice in the editor after Chinese Character input.([linux: Fix IME on fcitx](https://github.com/zed-industries/zed/pull/14508)). Before: ![zed2](https://github.com/user-attachments/assets/e387d70b-ca91-49c8-93e4-850f9e3ef227) After Fixed: ![zed](https://github.com/user-attachments/assets/8307c12f-30a7-4e82-8c65-d0b53bb8cf44) --- crates/gpui/src/platform/linux/x11/client.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/gpui/src/platform/linux/x11/client.rs b/crates/gpui/src/platform/linux/x11/client.rs index dfa7d1b150f8f7e7243fb19f12a00441b727c5c3..7493e55c7660683f449f1bc4dc899e0ff49f3c26 100644 --- a/crates/gpui/src/platform/linux/x11/client.rs +++ b/crates/gpui/src/platform/linux/x11/client.rs @@ -1001,7 +1001,6 @@ impl X11Client { })); } - window.handle_ime_commit(text); Some(()) }