Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_ui: Treat whitespace-only input as empty in MessageEditor (#55530)
GitGlimpse89586e64e2a55f5
diff --git a/crates/agent_ui/src/message_editor.rs b/crates/agent_ui/src/message_editor.rsindex 16f69b297cf..66887019d31 100644--- a/crates/agent_ui/src/message_editor.rs+++ b/crates/agent_ui/src/message_editor.rs@@ -677,7 +677,7 @@ impl MessageEditor {}pub fn is_empty(&self, cx: &App) -> bool {- self.editor.read(cx).is_empty(cx)+ self.editor.read(cx).text(cx).trim().is_empty()}pub fn is_completions_menu_visible(&self, cx: &App) -> bool {