From 59d2b5a122df3204714eb2501dbf1fa47db484aa Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Sun, 18 Dec 2022 15:05:22 +0100 Subject: [PATCH] Fix environment varaible for the correct file. --- src/structs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structs.rs b/src/structs.rs index 389e6c8..999ea8f 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -17,7 +17,7 @@ lazy_static! { } }; pub static ref CORRECT_FILE: Box = { - match std::env::var("LESSKEY_INIT") { + match std::env::var("LESSKEY_CORRECT") { Ok(v) => Path::new(shellexpand::full(&v).unwrap().into_owned().as_str()).to_path_buf().into_boxed_path(), _ => home_dir().unwrap().join(".lesskey_correct").into_boxed_path(), }