mirror of
https://github.com/joel16/VLFFM.git
synced 2025-02-09 04:46:41 +00:00
gui: Fix scrolling to end of list when list is < max entries
This commit is contained in:
parent
d301b712a3
commit
a43d7fc57b
@ -428,7 +428,11 @@ static int guiControlFileBrowserEndList(void *param) {
|
||||
|
||||
vlfGuiRemoveTextFocus(gui.text[gui.selected - gui.start], 1);
|
||||
gui.selected = (g_file_list.length - 1);
|
||||
gui.start = (g_file_list.length - 1) - (max_entries - 1);
|
||||
|
||||
if ((gui.selected == (g_file_list.length - 1)) && ((g_file_list.length - 1) > (max_entries - 1))) {
|
||||
gui.start = (g_file_list.length - 1) - (max_entries - 1);
|
||||
}
|
||||
|
||||
guiRefreshFileList(false);
|
||||
|
||||
vlfGuiSetTextFocus(gui.text[gui.selected - gui.start]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user