From 252fc9da1d8faf3cce4759a478e694a89bc222e0 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Fri, 2 Sep 2022 21:30:32 +0100 Subject: [PATCH] fix: displaying the incorrect number of items in completions --- lua/ivy/window.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/ivy/window.lua b/lua/ivy/window.lua index 5db6d20..0a45a46 100644 --- a/lua/ivy/window.lua +++ b/lua/ivy/window.lua @@ -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