bat theme wasn't getting set properly (#3807)

This commit is contained in:
Darren Schroeder 2021-07-19 14:54:36 -05:00 committed by GitHub
parent 7401fa2fa5
commit d0a7363e64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ impl From<&Value> for Config {
"line_ranges" => config.line_ranges = bat::line_range::LineRanges::all(),
"highlight_range" => config.highlight_range = "0,0".into(),
"theme" => {
config.theme = value
config.theme = entry
.as_string()
.unwrap_or_else(|_| "OneDarkHalf".to_string())
}