From 92ed5c7efcffee660ba7c23a7659c115b3112141 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 14 Dec 2024 13:20:12 +0800 Subject: [PATCH] .. --- yazi-core/src/manager/commands/refresh.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yazi-core/src/manager/commands/refresh.rs b/yazi-core/src/manager/commands/refresh.rs index fe5f5829..1fa6ba48 100644 --- a/yazi-core/src/manager/commands/refresh.rs +++ b/yazi-core/src/manager/commands/refresh.rs @@ -9,8 +9,7 @@ use crate::{manager::Manager, tasks::Tasks}; impl Manager { pub fn refresh(&mut self, _: CmdCow, tasks: &Tasks) { - CWD.set(self.cwd()); - if !MANAGER.title_format.is_empty() { + if CWD.set(self.cwd()) && !MANAGER.title_format.is_empty() { execute!(std::io::stderr(), SetTitle(self.title())).ok(); }