From 09d9ddde97d5def9107c9ad6a0939bf12703203e Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 23 May 2026 02:30:25 +0300 Subject: fix: preserve local keybindings in remote sessions --- src/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 33558b4b..d874455e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -36,6 +36,12 @@ pub(crate) fn app_dir_name() -> &'static str { io::app_dir_name() } +#[cfg(test)] +pub(crate) fn test_config_env_lock() -> &'static std::sync::Mutex<()> { + static LOCK: std::sync::OnceLock> = std::sync::OnceLock::new(); + LOCK.get_or_init(|| std::sync::Mutex::new(())) +} + impl Config { pub fn should_show_onboarding(&self) -> bool { self.onboarding.unwrap_or(true) -- cgit v1.2.3