Skip to content

Commit

Permalink
ensure highlight scopes are skipped properly
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalkuthe authored and AlexanderDickie committed Jul 3, 2024
1 parent bdc16eb commit 1040990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/ui/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ pub fn render_text<'t>(
}

// acquire the correct grapheme style
if char_pos >= syntax_style_span.1 {
while char_pos >= syntax_style_span.1 {
syntax_style_span = syntax_styles
.next()
.unwrap_or((Style::default(), usize::MAX));
}
if char_pos >= overlay_style_span.1 {
while char_pos >= overlay_style_span.1 {
overlay_style_span = overlay_styles
.next()
.unwrap_or((Style::default(), usize::MAX));
Expand Down

0 comments on commit 1040990

Please sign in to comment.