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 } }