mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
e8bca4b78a
commit
cf95280ed8
3 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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()))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue