diff options
author | Dan Davison <dandavison7@gmail.com> | 2022-05-13 11:59:45 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2022-05-13 12:21:16 -0400 |
commit | a8c79aa9de00e61dd2a92ac53923984391c461ae (patch) | |
tree | 95981c960f3535b2d606a4d2b18ca9c393579430 /src | |
parent | a53dc02c4a81c6ff2423cb7e8f2397a20437a918 (diff) |
Update bat, git2, and syntect
Diffstat (limited to 'src')
-rw-r--r-- | src/paint.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/paint.rs b/src/paint.rs index 7f497fe1..8da56cda 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -677,7 +677,11 @@ pub fn get_syntax_style_sections_for_lines<'a>( ) { (Some(highlighter), true) => { for (line, _) in lines.iter() { - line_sections.push(highlighter.highlight(line, &config.syntax_set)); + line_sections.push( + highlighter + .highlight_line(line, &config.syntax_set) + .unwrap(), + ); } } _ => { |