Skip to content

Commit 6f046ff

Browse files
committed
fix: restore fallback mechanism when jumping by property
1 parent 99e2c66 commit 6f046ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/blink/cmp/completion/list.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function list.select_next(opts)
213213
return list.select(1, opts)
214214
end
215215

216-
if opts and opts.jump_by then return list.jump_by(1, opts) end
216+
if opts and opts.jump_by and list.jump_by(1, opts) then return true end
217217

218218
-- fallback, select the next item
219219
local count = opts and opts.count or 1
@@ -243,7 +243,7 @@ function list.select_prev(opts)
243243
return list.select(#list.items, opts)
244244
end
245245

246-
if opts and opts.jump_by then return list.jump_by(-1, opts) end
246+
if opts and opts.jump_by and list.jump_by(-1, opts) then return true end
247247

248248
-- fallback, select the previous item
249249
local count = opts and opts.count or 1

0 commit comments

Comments
 (0)