Skip to content

Commit

Permalink
fix: Don't highlight background
Browse files Browse the repository at this point in the history
This follows the model of `bat` which seems to be to respect the user's
background color rather than trying to be its own thing.

Fixes #26
  • Loading branch information
epage committed Oct 12, 2022
1 parent a47ff5d commit 63b6fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ impl<'a> Highlighter<'a> {
ranges[0].1 = line;
}

let escaped = syntect::util::as_24_bit_terminal_escaped(&ranges[..], true);
let escaped = syntect::util::as_24_bit_terminal_escaped(&ranges[..], false);
Ok(escaped)
} else {
Ok(line.to_owned())
Expand Down

0 comments on commit 63b6fa3

Please sign in to comment.