Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/options/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ pub fn set_options(
.unwrap_or_else(|| "magenta reverse".to_string())
}

// Sets opt.computed.color_mode to the computed or provided value (by --light or --dark),
// then used e.g. by the line numbers feature.
theme::set__color_mode__syntax_theme__syntax_set(opt, assets);

set_options!(
[
blame_code_style,
Expand Down Expand Up @@ -237,7 +241,6 @@ pub fn set_options(
// Setting ComputedValues
set_widths_and_isatty(opt);
set_true_color(opt);
theme::set__color_mode__syntax_theme__syntax_set(opt, assets);
opt.computed.inspect_raw_lines =
cli::InspectRawLines::from_str(&opt.inspect_raw_lines).unwrap();
opt.computed.paging_mode = parse_paging_mode(&opt.paging_mode);
Expand Down
Loading