From f70a09aaa98557ecbc6f133c7b5daac9adc4cc36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 26 Jan 2021 09:30:23 +0800 Subject: fix completion --- script/provider/provider.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/provider/provider.lua') diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 6c8890ac..923b6c1f 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -352,7 +352,7 @@ proto.on('textDocument/completion', function (params) end await.setPriority(1000) local clock = os.clock() - local offset = files.offsetOfWord(uri, params.position) + local offset = files.offset(uri, params.position) local result = core.completion(uri, offset) local passed = os.clock() - clock if passed > 0.1 then -- cgit v1.2.3