Skip to content

Commit 07b2ee1

Browse files
committed
fix: cycling list skipping one item
1 parent 0b9a128 commit 07b2ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/blink/cmp/completion/list.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function list.select_next()
113113
if list.config.selection ~= 'preselect' then return list.select(nil) end
114114

115115
-- otherwise, we cycle around
116-
list.select(1)
116+
return list.select(1)
117117
end
118118

119119
-- typical case, select the next item
@@ -135,7 +135,7 @@ function list.select_prev()
135135
if list.config.selection == 'auto_insert' then return list.select(nil) end
136136

137137
-- otherwise, we cycle around
138-
list.select(#list.items)
138+
return list.select(#list.items)
139139
end
140140

141141
-- typical case, select the previous item

0 commit comments

Comments
 (0)