diff --git a/lua/lspsaga/diagnostic/init.lua b/lua/lspsaga/diagnostic/init.lua index 53e01b4c1..a7d379b00 100644 --- a/lua/lspsaga/diagnostic/init.lua +++ b/lua/lspsaga/diagnostic/init.lua @@ -52,6 +52,9 @@ function diag:get_diagnostic(opt) if opt.cursor then local res = {} for _, v in pairs(entrys) do + if v.col == nil then + v.col = col + end if v.col <= col and (v.end_col and v.end_col > col or true) then res[#res + 1] = v end