summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/completion.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 08d6f5f2..8d861aeb 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -1268,17 +1268,18 @@ local function trySymbol(state, text, position, results)
if isInString(state, position) then
return nil
end
+ local startPos = guide.offsetToPosition(state, start)
if symbol == '.'
or symbol == ':' then
- local parent, oop = findParent(state, text, start)
+ local parent, oop = findParent(state, text, startPos)
if parent then
tracy.ZoneBeginN 'completion.trySymbol'
- checkField(state, '', start, position, parent, oop, results)
+ checkField(state, '', startPos, position, parent, oop, results)
tracy.ZoneEnd()
end
end
if symbol == '(' then
- checkFunctionArgByDocParam(state, '', start, results)
+ checkFunctionArgByDocParam(state, '', startPos, results)
end
end