From 63b6fa3c1c44373210fa5cd98b48289834c81ac8 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 11 Oct 2022 20:18:52 -0500 Subject: [PATCH] fix: Don't highlight background 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 --- src/blame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blame.rs b/src/blame.rs index b960e42..e31c48a 100644 --- a/src/blame.rs +++ b/src/blame.rs @@ -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())