mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
Avoid opening a definitions tab if there are no definitions found
This commit is contained in:
parent
b396e153d1
commit
9f86748aff
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue