From 6d4c748d82ae4d7c6151102ed5f3c9b7a2836f6e Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 1 Apr 2022 10:15:37 +0200 Subject: [PATCH] Show "untitled" in breadcrumbs when the buffer has no path --- crates/breadcrumbs/src/breadcrumbs.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/breadcrumbs/src/breadcrumbs.rs b/crates/breadcrumbs/src/breadcrumbs.rs index 85723d9399..e575d27e50 100644 --- a/crates/breadcrumbs/src/breadcrumbs.rs +++ b/crates/breadcrumbs/src/breadcrumbs.rs @@ -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)) } }