diff --git a/tui/src/state.rs b/tui/src/state.rs index 4e398ee7..b0ba0f95 100644 --- a/tui/src/state.rs +++ b/tui/src/state.rs @@ -668,8 +668,10 @@ impl AppState { fn enable_description(&mut self) { if let Some(command_description) = self.get_selected_description() { - let description = FloatingText::new(command_description, "Command Description"); - self.spawn_float(description, 80, 80); + if !command_description.is_empty() { + let description = FloatingText::new(command_description, "Command Description"); + self.spawn_float(description, 80, 80); + } } }