fix: scroll misbehaving + fixed jump to middle (#547)
* fix: scroll misbehaving + fixed jump to middle * add test * fixx * fix nil
This commit is contained in:
@@ -80,7 +80,11 @@ end
|
||||
|
||||
function actions.move_to_middle(prompt_bufnr)
|
||||
local current_picker = actions.get_current_picker(prompt_bufnr)
|
||||
current_picker:set_selection(p_scroller.middle(nil, current_picker.max_results, nil))
|
||||
current_picker:set_selection(p_scroller.middle(
|
||||
current_picker.sorting_strategy,
|
||||
current_picker.max_results,
|
||||
current_picker.manager:num_results()
|
||||
))
|
||||
end
|
||||
|
||||
function actions.move_to_bottom(prompt_bufnr)
|
||||
|
||||
Reference in New Issue
Block a user