Show "untitled" in breadcrumbs when the buffer has no path

This commit is contained in:
Antonio Scandurra 2022-04-01 10:15:37 +02:00
parent 7f9ff47089
commit 6d4c748d82

View File

@ -39,11 +39,7 @@ impl Breadcrumbs {
.read(cx)
.read(cx)
.symbols_containing(cursor, Some(theme))?;
if buffer.path().is_none() && symbols.is_empty() {
None
} else {
Some((buffer, symbols))
}
Some((buffer, symbols))
}
}