diff --git a/yazi-core/src/manager/commands/hover.rs b/yazi-core/src/manager/commands/hover.rs index c02a0098..a3d046a1 100644 --- a/yazi-core/src/manager/commands/hover.rs +++ b/yazi-core/src/manager/commands/hover.rs @@ -27,6 +27,8 @@ impl Manager { let opt = opt.into() as Opt; if let Some(u) = opt.url { self.hover_do(u, opt.tab); + } else { + self.current_or_mut(opt.tab).repos(None); } // Repeek diff --git a/yazi-core/src/manager/commands/update_paged.rs b/yazi-core/src/manager/commands/update_paged.rs index fba1ab83..60330440 100644 --- a/yazi-core/src/manager/commands/update_paged.rs +++ b/yazi-core/src/manager/commands/update_paged.rs @@ -27,7 +27,7 @@ impl Manager { return; }; - if opt.only_if.is_some_and(|u| u != *self.active().cwd().url()) { + if opt.only_if.is_some_and(|u| u != *self.cwd().url()) { return; } diff --git a/yazi-core/src/tab/tab.rs b/yazi-core/src/tab/tab.rs index 6d5e723e..12cbfb15 100644 --- a/yazi-core/src/tab/tab.rs +++ b/yazi-core/src/tab/tab.rs @@ -86,7 +86,6 @@ impl Tab { } // --- History - #[inline] pub fn hovered_folder(&self) -> Option<&Folder> { self.current.hovered().filter(|&h| h.is_dir()).and_then(|h| self.history.get(h.url()))