summaryrefslogtreecommitdiff
path: root/script/core/rename.lua
diff options
context:
space:
mode:
authorLei Zhu <uhziel@gmail.com>2021-01-05 16:53:49 +0800
committerLei Zhu <uhziel@gmail.com>2021-01-05 16:53:49 +0800
commiteb87cc84f2475911c2086da982902c75f3bfdd3a (patch)
tree6737c8f955390596314055cd79a6e7eb85688b82 /script/core/rename.lua
parent39bbefd8b4c98be50955b2484af1a6b6f9541f54 (diff)
parent525f551abc533b704906fd3a5cb84404fb5cf4de (diff)
downloadlua-language-server-eb87cc84f2475911c2086da982902c75f3bfdd3a.zip
Merge branch 'doc-type-table' of https://github.com/uhziel/lua-language-server into doc-type-table
Diffstat (limited to 'script/core/rename.lua')
-rw-r--r--script/core/rename.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/rename.lua b/script/core/rename.lua
index b823cb86..3f73c338 100644
--- a/script/core/rename.lua
+++ b/script/core/rename.lua
@@ -292,7 +292,7 @@ local function ofField(source, newname, callback)
else
node = source.node
end
- for _, src in ipairs(vm.getFields(node, 0)) do
+ for _, src in ipairs(vm.getFields(node, 5)) do
ofFieldThen(key, src, newname, callback)
end
end