From 54559007c3918a9b08f8c11172ba54e4944416c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 19 Nov 2018 16:25:19 +0800 Subject: =?UTF-8?q?=E6=89=BE=E4=B8=8D=E5=88=B0=E5=AE=9A=E4=B9=89=E4=B8=8D?= =?UTF-8?q?=E8=A6=81=E6=8A=9B=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/method/textDocument/definition.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/method') 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) -- cgit v1.2.3