fix(custom_entries_view): remove off-by-one error with bottom_up selection order (#1261)

Closes #1260
This commit is contained in:
sanka047
2022-10-28 20:04:41 -05:00
committed by GitHub
parent cdb77665bb
commit 9bb8ee6e2d

View File

@@ -213,7 +213,7 @@ custom_entries_view.open = function(self, offset, entries)
if self:is_direction_top_down() then
self:_select(1, { behavior = types.cmp.SelectBehavior.Select })
else
self:_select(#self.entries - 1, { behavior = types.cmp.SelectBehavior.Select })
self:_select(#self.entries, { behavior = types.cmp.SelectBehavior.Select })
end
else
if self:is_direction_top_down() then