Skip to content

Commit

Permalink
set upd
Browse files Browse the repository at this point in the history
  • Loading branch information
sharma-shray authored Nov 19, 2024
1 parent 97d166e commit 4f3981d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/options/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub fn set_options(
}
opt.navigate = opt.navigate || opt.env.navigate.is_some();
if opt.syntax_theme.is_none() {
opt.syntax_theme = opt.env.bat_theme.take();
opt.syntax_theme.clone_from(&opt.env.bat_theme);
}

let option_names = cli::Opt::get_argument_and_option_names();
Expand Down Expand Up @@ -863,4 +863,4 @@ pub mod tests {
assert_eq!(parse_width_specifier(" - 12 ", term_width).unwrap(), 0);
assert_eq!(parse_width_specifier(" 2 - 2 ", term_width).unwrap(), 0);
}
}
}

0 comments on commit 4f3981d

Please sign in to comment.