Skip to content

Commit c768da5

Browse files
committed
Fix setting renderer.pos nil value
1 parent 3cec4a2 commit c768da5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/neocodeium/completer.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ function Completer:accept()
364364
utils.set_cursor(pos)
365365
end
366366
-- required to update label position
367-
renderer.pos = pos
367+
if pos then
368+
renderer.pos = pos
369+
end
368370
end, 0)
369371
end
370372

0 commit comments

Comments
 (0)