This commit is contained in:
sxyazi 2023-11-23 21:35:34 +08:00
parent c1fedcf49a
commit c83963df11
No known key found for this signature in database

View file

@ -23,6 +23,10 @@ impl Manager {
}
pub fn hover(&mut self, opt: impl Into<Opt>) -> 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
}
}