Skip to content

Commit

Permalink
Python handler erroring because of writing to a nil table (#411)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam-programs <None>
  • Loading branch information
Sam-programs committed Oct 21, 2023
1 parent f6c7164 commit 0f04d78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/nvim-autopairs/completion/handlers.lua
Expand Up @@ -82,7 +82,9 @@ M.lisp = function (char, item, bufnr, _, _)
end

M.python = function(char, item, bufnr, rules, _)
item.data.funcParensDisabled = false
if item.data then
item.data.funcParensDisabled = false
end
M["*"](char,item,bufnr,rules)
end

Expand Down

0 comments on commit 0f04d78

Please sign in to comment.