Skip to content

Commit

Permalink
add check for nil on documentation.value (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbode authored Jul 25, 2022
1 parent 76ba56c commit 706371f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/cmp/entry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ entry.get_documentation = function(self)
value = value,
})
end
elseif type(documentation) == 'table' and documentation.value ~= '' then
elseif type(documentation) == 'table' and not misc.empty(documentation.value) then
local value = str.trim(documentation.value)
if value ~= '' then
table.insert(documents, {
Expand Down

0 comments on commit 706371f

Please sign in to comment.