Avoid opening a definitions tab if there are no definitions found

This commit is contained in:
Max Brunsfeld 2023-01-26 10:30:01 -08:00
parent b396e153d1
commit 9f86748aff

View file

@ -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()