From ae147a379dd8b95ba422d9e953b52fee7cfd10e9 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 16 Dec 2021 16:05:28 -0800 Subject: [PATCH] Don't terminate on an empty input chunk in `ExcerptChunks` --- crates/editor/src/multi_buffer.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/editor/src/multi_buffer.rs b/crates/editor/src/multi_buffer.rs index d907e5dbf4..902f9e4bc1 100644 --- a/crates/editor/src/multi_buffer.rs +++ b/crates/editor/src/multi_buffer.rs @@ -2018,9 +2018,7 @@ impl<'a> Iterator for ExcerptChunks<'a> { } if let Some(chunk) = self.content_chunks.next() { - if !chunk.text.is_empty() { - return Some(chunk); - } + return Some(chunk); } if self.footer_height > 0 {