From 9f86748aff13bd0b402f0b2ff28d125344c25202 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 26 Jan 2023 10:30:01 -0800 Subject: [PATCH] Avoid opening a definitions tab if there are no definitions found --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 84b97468e0..f25eefcb7d 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -5042,7 +5042,7 @@ impl Editor { pane.update(cx, |pane, _| pane.enable_history()); }); - } else { + } else if !definitions.is_empty() { let replica_id = editor_handle.read(cx).replica_id(cx); let title = definitions .iter()