summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/parser/guide.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index c34e65f9..53849a52 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -2937,6 +2937,11 @@ end
function m.getRefCache(status, obj, mode)
local isDeep = status.deep
+ if mode == 'infer' then
+ if not isDeep then
+ return nil, nil
+ end
+ end
local globalCache = status.interface.cache and status.interface.cache() or {}
if m.isGlobal(obj) then
obj = m.getKeyName(obj)