fix(custom_entries_view): remove off-by-one error with bottom_up selection order (#1261)
Closes #1260
This commit is contained in:
@@ -213,7 +213,7 @@ custom_entries_view.open = function(self, offset, entries)
|
|||||||
if self:is_direction_top_down() then
|
if self:is_direction_top_down() then
|
||||||
self:_select(1, { behavior = types.cmp.SelectBehavior.Select })
|
self:_select(1, { behavior = types.cmp.SelectBehavior.Select })
|
||||||
else
|
else
|
||||||
self:_select(#self.entries - 1, { behavior = types.cmp.SelectBehavior.Select })
|
self:_select(#self.entries, { behavior = types.cmp.SelectBehavior.Select })
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if self:is_direction_top_down() then
|
if self:is_direction_top_down() then
|
||||||
|
|||||||
Reference in New Issue
Block a user