From 07b2ee14eaae6908f0da44bfa918177d167b12de Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Wed, 27 Nov 2024 16:14:52 -0500 Subject: [PATCH] fix: cycling list skipping one item --- lua/blink/cmp/completion/list.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/blink/cmp/completion/list.lua b/lua/blink/cmp/completion/list.lua index bcdda8ca..c0537d3c 100644 --- a/lua/blink/cmp/completion/list.lua +++ b/lua/blink/cmp/completion/list.lua @@ -113,7 +113,7 @@ function list.select_next() if list.config.selection ~= 'preselect' then return list.select(nil) end -- otherwise, we cycle around - list.select(1) + return list.select(1) end -- typical case, select the next item @@ -135,7 +135,7 @@ function list.select_prev() if list.config.selection == 'auto_insert' then return list.select(nil) end -- otherwise, we cycle around - list.select(#list.items) + return list.select(#list.items) end -- typical case, select the previous item