summaryrefslogtreecommitdiff
path: root/src/method
diff options
context:
space:
mode:
Diffstat (limited to 'src/method')
-rw-r--r--src/method/textDocument/definition.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/method/textDocument/definition.lua b/src/method/textDocument/definition.lua
index 392696d1..d9378b58 100644
--- a/src/method/textDocument/definition.lua
+++ b/src/method/textDocument/definition.lua
@@ -11,7 +11,7 @@ return function (lsp, params)
local pos = parser.calcline.position(text, params.position.line + 1, params.position.character + 1)
local suc, start, finish = matcher.definition(text, pos)
if not suc then
- return nil, start
+ return {}
end
local start_row, start_col = parser.calcline.rowcol(text, start)