mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +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());
|
pane.update(cx, |pane, _| pane.enable_history());
|
||||||
});
|
});
|
||||||
} else {
|
} else if !definitions.is_empty() {
|
||||||
let replica_id = editor_handle.read(cx).replica_id(cx);
|
let replica_id = editor_handle.read(cx).replica_id(cx);
|
||||||
let title = definitions
|
let title = definitions
|
||||||
.iter()
|
.iter()
|
||||||
|
|
Loading…
Reference in a new issue