Highlight empty lines correctly
This commit is contained in:
parent
dacd9bef94
commit
a51f5ac4a8
1 changed files with 5 additions and 0 deletions
|
|
@ -970,6 +970,11 @@ impl<'a> TextBuffer<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
if run.glyphs.is_empty() && end.line > line_i{
|
||||
// Highlight all of internal empty lines
|
||||
range_opt = Some((0, self.width));
|
||||
}
|
||||
|
||||
if let Some((mut min, mut max)) = range_opt.take() {
|
||||
if end.line > line_i {
|
||||
// Draw to end of line
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue