mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 13:10:54 +00:00
Show "untitled" in breadcrumbs when the buffer has no path
This commit is contained in:
parent
7f9ff47089
commit
6d4c748d82
1 changed files with 1 additions and 5 deletions
|
@ -39,13 +39,9 @@ impl Breadcrumbs {
|
||||||
.read(cx)
|
.read(cx)
|
||||||
.read(cx)
|
.read(cx)
|
||||||
.symbols_containing(cursor, Some(theme))?;
|
.symbols_containing(cursor, Some(theme))?;
|
||||||
if buffer.path().is_none() && symbols.is_empty() {
|
|
||||||
None
|
|
||||||
} else {
|
|
||||||
Some((buffer, symbols))
|
Some((buffer, symbols))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
impl Entity for Breadcrumbs {
|
impl Entity for Breadcrumbs {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
|
|
Loading…
Reference in a new issue