aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index de98490..436fabe 100644
--- a/init.lua
+++ b/init.lua
@@ -774,7 +774,7 @@ local function lspc_handle_hover_method_response(win, result, old_pos)
local hover_msg = ''
-- result is MarkedString[]
- if type(result.contents) == 'table' then
+ if type(result.contents) == 'table' and #result.contents > 0 then
lspc.log('hover returned list of length ' .. #result.contents)
for i, v in ipairs(result.contents) do
if i == 1 then