From c83963df11221c85d0527c318683e306f92babe3 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Thu, 23 Nov 2023 21:35:34 +0800 Subject: [PATCH] .. --- yazi-core/src/manager/commands/hover.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/yazi-core/src/manager/commands/hover.rs b/yazi-core/src/manager/commands/hover.rs index 617bf615..d6d24b33 100644 --- a/yazi-core/src/manager/commands/hover.rs +++ b/yazi-core/src/manager/commands/hover.rs @@ -23,6 +23,10 @@ impl Manager { } pub fn hover(&mut self, opt: impl Into) -> bool { + // Hover on the file + let opt = opt.into() as Opt; + let b = self.current_mut().repos(opt.url); + // Re-peek self.peek(0); @@ -39,8 +43,6 @@ impl Manager { } self.watcher.watch(to_watch); - // Hover on the file - let opt = opt.into() as Opt; - self.current_mut().repos(opt.url) + b } }