Closes: #19714
This reverts commit 6dcec47235
.
Release Notes:
- (preview only) Fixes a crash when rendering invisibles
This commit is contained in:
parent
d40ea8fc81
commit
85bdd9329b
12 changed files with 260 additions and 563 deletions
|
@ -501,8 +501,6 @@ pub struct Chunk<'a> {
|
|||
pub is_unnecessary: bool,
|
||||
/// Whether this chunk of text was originally a tab character.
|
||||
pub is_tab: bool,
|
||||
/// Whether this chunk of text is an invisible character.
|
||||
pub is_invisible: bool,
|
||||
/// An optional recipe for how the chunk should be presented.
|
||||
pub renderer: Option<ChunkRenderer>,
|
||||
}
|
||||
|
@ -4213,6 +4211,7 @@ impl<'a> Iterator for BufferChunks<'a> {
|
|||
if self.range.start == self.chunks.offset() + chunk.len() {
|
||||
self.chunks.next().unwrap();
|
||||
}
|
||||
|
||||
Some(Chunk {
|
||||
text: slice,
|
||||
syntax_highlight_id: highlight_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue