Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Wayland: avoid replacing text with empty string (#8103)
Rom Grk946f4a312aa5
diff --git a/crates/gpui/src/platform/linux/util.rs b/crates/gpui/src/platform/linux/util.rsindex 6791ffee36f..d0ee6287c9f 100644--- a/crates/gpui/src/platform/linux/util.rs+++ b/crates/gpui/src/platform/linux/util.rs@@ -17,7 +17,9 @@ impl Keystroke {// Ignore control characters (and DEL) for the purposes of ime_key,// but if key_utf32 is 0 then assume it isn't one- let ime_key = (key_utf32 == 0 || (key_utf32 >= 32 && key_utf32 != 127)).then_some(key_utf8);+ let ime_key = ((key_utf32 == 0 || (key_utf32 >= 32 && key_utf32 != 127))+ && !key_utf8.is_empty())+ .then_some(key_utf8);Keystroke {modifiers,