fix: displaying the incorrect number of items in completions

This commit is contained in:
Ade Attwood 2022-09-02 21:30:32 +01:00
parent 1220eb3bc3
commit 252fc9da1d

View file

@ -119,7 +119,7 @@ window.set_items = function(items)
-- Limit the results window size to 10 so when there are lots of results the
-- window does not take up the hole terminal
local line_count = items_length - 1
local line_count = items_length
if line_count > 10 then
line_count = 10
end