Skip to content

Commit

Permalink
attempt to fail early
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondill committed Apr 30, 2023
1 parent 0e0d854 commit dd1384e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/tabnine/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ end

function M.accept()
M.clear()
if not state.rendered_completion then
return
end
local lines = utils.str_to_lines(state.rendered_completion)

if utils.starts_with(state.rendered_completion, "\n") then
Expand Down

0 comments on commit dd1384e

Please sign in to comment.