mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-24 00:01:03 +00:00
fix: wrong file list offset squeeze when scrolloff = 0 (#1866)
This commit is contained in:
parent
c6687237e1
commit
e3c91115a2
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ impl Folder {
|
|||
self.offset = if self.cursor < (self.offset + limit).min(len).saturating_sub(scrolloff) {
|
||||
len.saturating_sub(limit).min(self.offset)
|
||||
} else {
|
||||
len.saturating_sub(limit).min(self.cursor.saturating_sub(limit) + scrolloff)
|
||||
len.saturating_sub(limit).min(self.cursor.saturating_sub(limit) + 1 + scrolloff)
|
||||
};
|
||||
|
||||
old != self.offset
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue