summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion.lua3
1 files changed, 2 insertions, 1 deletions
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)