feat: adds M mapping in normal mode (#544)

This commit is contained in:
Hubert Pelczarski
2021-02-24 03:35:52 +01:00
committed by GitHub
parent 10627e889e
commit 67b0661537
4 changed files with 18 additions and 1 deletions

View File

@@ -80,6 +80,10 @@ scroller.top = function(sorting_strategy, max_results, num_results)
return (num_results > max_results) and 0 or (max_results - num_results)
end
scroller.middle = function(sorting_strategy, max_results, num_results)
return math.floor(max_results/2)
end
scroller.bottom = function(sorting_strategy, max_results, num_results)
if sorting_strategy == 'ascending' then
return math.min(max_results, num_results) - 1