From 4f3981d6ccaae786af11d96112657e37df3db69d Mon Sep 17 00:00:00 2001 From: shray sharma Date: Tue, 19 Nov 2024 19:25:50 +0100 Subject: [PATCH] set upd --- src/options/set.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options/set.rs b/src/options/set.rs index 34accba6b..195d6278a 100644 --- a/src/options/set.rs +++ b/src/options/set.rs @@ -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(); @@ -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); } -} +} \ No newline at end of file