fix: Scrolls past bottom line
This commit is contained in:
@@ -631,8 +631,8 @@ end
|
|||||||
function Picker:set_selection(row)
|
function Picker:set_selection(row)
|
||||||
-- TODO: Loop around behavior?
|
-- TODO: Loop around behavior?
|
||||||
-- TODO: Scrolling past max results
|
-- TODO: Scrolling past max results
|
||||||
if row > self.max_results then
|
if row >= self.max_results then
|
||||||
row = self.max_results
|
row = self.max_results - 1
|
||||||
elseif row < 0 then
|
elseif row < 0 then
|
||||||
row = 0
|
row = 0
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user