mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: squeeze the parent directory offset after terminal size change (#2275)
This commit is contained in:
parent
74ce17ebbe
commit
c41f2e21e0
2 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ impl Manager {
|
|||
#[inline]
|
||||
pub fn parent(&self) -> Option<&Folder> { self.active().parent.as_ref() }
|
||||
|
||||
#[inline]
|
||||
pub fn parent_mut(&mut self) -> Option<&mut Folder> { self.active_mut().parent.as_mut() }
|
||||
|
||||
#[inline]
|
||||
pub fn hovered(&self) -> Option<&File> { self.active().hovered() }
|
||||
|
||||
|
|
|
|||
|
|
@ -20,5 +20,6 @@ impl App {
|
|||
|
||||
self.cx.current_mut().sync_page(true);
|
||||
self.cx.manager.hover(None);
|
||||
self.cx.manager.parent_mut().map(|f| f.arrow(0));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue