This commit is contained in:
sxyazi 2024-09-16 01:00:47 +08:00
parent e8bca4b78a
commit cf95280ed8
No known key found for this signature in database
3 changed files with 3 additions and 2 deletions

View file

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

View file

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

View file

@ -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()))