From e271d36bdc3bf2cc0f96e19f74bd861b2cfb177f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 3 Nov 2021 11:24:19 +0800 Subject: fix #780 --- script/core/completion.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script/core') diff --git a/script/core/completion.lua b/script/core/completion.lua index 74017ec6..6ec15bcf 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -712,7 +712,8 @@ end local function isInString(state, position) return guide.eachSourceContain(state.ast, position, function (source) - if source.type == 'string' then + if source.type == 'string' + and source.start < position then return true end end) -- cgit v1.2.3