Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Do not show edit prediction during in-progress IME composition (#37400)

Smit Barmasee4df866664b4
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index d5621e8165c..0494eb6c1f2 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);