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 ca8c5b6..e05d5ae 100644
--- a/init.lua
+++ b/init.lua
@@ -1319,7 +1319,7 @@ local function lspc_show_diagnostic(ls, win, line)
local open_file = ls.open_files[win.file.path]
local diagnostics = open_file.diagnostics
- if not diagnostics then
+ if not diagnostics or #diagnostics == 0 then
return win.file.path .. ' has no diagnostics available'
end