Skip to content

Commit a828927

Browse files
committed
fix: avoid dedent error
1 parent 575d5bd commit a828927

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/supermaven-nvim/binary/binary_handler.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ function BinaryLifecycle:poll_once()
325325
end
326326

327327
self.wants_polling = maybe_completion.is_incomplete
328-
if #maybe_completion.dedent > 0 and not u.ends_with(line_before_cursor, maybe_completion.dedent) then
328+
if maybe_completion.dedent == nil or
329+
(#maybe_completion.dedent > 0 and not u.ends_with(line_before_cursor, maybe_completion.dedent))
330+
then
329331
return
330332
end
331333

0 commit comments

Comments
 (0)