mirror of
https://github.com/Dummi26/tuifile.git
synced 2025-03-10 03:43:52 +01:00
fix: being scrolled down by 1 on launch
This commit is contained in:
parent
3b09ac9e13
commit
0016c7d9f0
@ -385,7 +385,7 @@ impl TuiFile {
|
||||
self.scroll = i;
|
||||
self.updates.request_redraw_filelist();
|
||||
}
|
||||
if i >= self.scroll + self.last_drawn_files_height {
|
||||
if i >= self.scroll + self.last_drawn_files_height && self.last_drawn_files_height > 0 {
|
||||
self.scroll = 1 + i - self.last_drawn_files_height;
|
||||
self.updates.request_redraw_filelist();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user