mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
e7c4286962
commit
d8ac32f1fd
1 changed files with 2 additions and 2 deletions
|
|
@ -64,8 +64,8 @@ impl Folder {
|
|||
return false;
|
||||
}
|
||||
|
||||
let limit = MANAGER.layout.folder_height();
|
||||
let old = self.cursor;
|
||||
let limit = MANAGER.layout.folder_height();
|
||||
self.cursor = step.add(self.cursor, || limit).min(len - 1);
|
||||
self.hovered = self.files.duplicate(self.cursor);
|
||||
self.set_page(false);
|
||||
|
|
@ -79,7 +79,7 @@ impl Folder {
|
|||
|
||||
pub fn prev(&mut self, step: Step) -> bool {
|
||||
let old = self.cursor;
|
||||
self.cursor = step.add(self.cursor, || 0);
|
||||
self.cursor = step.add(self.cursor, || MANAGER.layout.folder_height());
|
||||
self.hovered = self.files.duplicate(self.cursor);
|
||||
self.set_page(false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue