diff options
Diffstat (limited to 'server/src/matcher/diagnostics.lua')
-rw-r--r-- | server/src/matcher/diagnostics.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/src/matcher/diagnostics.lua b/server/src/matcher/diagnostics.lua index bb9367fc..28a18013 100644 --- a/server/src/matcher/diagnostics.lua +++ b/server/src/matcher/diagnostics.lua @@ -115,11 +115,14 @@ end local function searchNewLineCall(results, lines, callback) for _, call in ipairs(results.calls) do - if not call.lastobj.start then + if not call.nextObj then + goto NEXT_CALL + end + if not call.lastObj.start then goto NEXT_CALL end local callline = lines:rowcol(call.call.start) - local lastline = lines:rowcol(call.lastobj.start) + local lastline = lines:rowcol(call.lastObj.finish) if callline > lastline then callback(call.call.start, call.call.finish) end |