From cf95280ed848b3b5c9d524bcb8bf70da4f2655d1 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 16 Sep 2024 01:00:47 +0800 Subject: [PATCH] .. --- yazi-core/src/manager/commands/hover.rs | 2 ++ yazi-core/src/manager/commands/update_paged.rs | 2 +- yazi-core/src/tab/tab.rs | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) 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()))