From 5fb44f0dad1f8e59422c0ceeba7c1b761b2bd36d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 24 Jun 2021 21:59:54 +0800 Subject: [PATCH] Revert "fix #539" This reverts commit ba02896e82d515e4f608b43edb99692f96851ea6. --- .vscode/launch.json | 2 +- changelog.md | 1 - script/core/completion.lua | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index c23af9d7f..3ba84cd21 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -30,7 +30,7 @@ "type": "lua", "request": "attach", "stopOnEntry": true, - "address": "127.0.0.1:11427", + "address": "127.0.0.1:11413", "outputCapture": [ ], "sourceMaps": [ diff --git a/changelog.md b/changelog.md index 2847f76d2..7b74d910a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,6 @@ # changelog ## 2.0.4 -* `FIX` [#539](https://github.com/sumneko/lua-language-server/issues/539) * `FIX` [#550](https://github.com/sumneko/lua-language-server/issues/550) ## 2.0.3 diff --git a/script/core/completion.lua b/script/core/completion.lua index 97984299b..2975634c9 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -1172,7 +1172,7 @@ local function tryWord(ast, text, offset, triggerCharacter, results) if not word then if triggerCharacter == nil then word = '' - start = offset + 1 + start = offset else return nil end