diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rs index 21c30c6f351fae993c9eeb1fed9417ee3b1ead81..0e0a48b9402a92955910bb724d54624332eecd7c 100644 --- a/crates/editor/src/items.rs +++ b/crates/editor/src/items.rs @@ -397,7 +397,7 @@ impl View for DiagnosticMessage { if let Some(diagnostic) = &self.diagnostic { let theme = &self.settings.borrow().theme.workspace.status_bar; Label::new( - diagnostic.message.lines().next().unwrap().to_string(), + diagnostic.message.split('\n').next().unwrap().to_string(), theme.diagnostic_message.clone(), ) .contained()