fix: displaying the incorrect number of items in completions
This commit is contained in:
parent
1220eb3bc3
commit
252fc9da1d
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ window.set_items = function(items)
|
||||||
|
|
||||||
-- Limit the results window size to 10 so when there are lots of results the
|
-- Limit the results window size to 10 so when there are lots of results the
|
||||||
-- window does not take up the hole terminal
|
-- window does not take up the hole terminal
|
||||||
local line_count = items_length - 1
|
local line_count = items_length
|
||||||
if line_count > 10 then
|
if line_count > 10 then
|
||||||
line_count = 10
|
line_count = 10
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue