From e4df866664b4efa2adc78eb1a0fe3b6a89ece8d6 Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Wed, 3 Sep 2025 03:41:10 +0530 Subject: [PATCH] editor: Do not show edit prediction during in-progress IME composition (#37400) Closes #37249 We no longer show edit prediction when composing IME since it isn't useful for unfinished alphabet. Release Notes: - Fixed edit predictions showing up during partial IME composition. --- crates/editor/src/editor.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index d5621e8165cb7afe1acb869479e780f960ccb269..0494eb6c1f2e446202727ad987304250a3fd0291 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -7744,6 +7744,11 @@ impl Editor { return None; } + if self.ime_transaction.is_some() { + self.discard_edit_prediction(false, cx); + return None; + } + let selection = self.selections.newest_anchor(); let cursor = selection.head(); let multibuffer = self.buffer.read(cx).snapshot(cx);