summaryrefslogtreecommitdiff
path: root/server/src/core/rename.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-28 14:02:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-28 14:02:25 +0800
commitd021ae89300334f58689590e1cd122126f6de974 (patch)
tree00aa326a8529f555d346718ab373ece1af6dd6ec /server/src/core/rename.lua
parent37bee650922156a8f2928ea9d95207ab8e973975 (diff)
downloadlua-language-server-d021ae89300334f58689590e1cd122126f6de974.zip
修正报错
Diffstat (limited to 'server/src/core/rename.lua')
-rw-r--r--server/src/core/rename.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/rename.lua b/server/src/core/rename.lua
index b9f692d6..98257ddb 100644
--- a/server/src/core/rename.lua
+++ b/server/src/core/rename.lua
@@ -35,7 +35,7 @@ local function parseResult(source, newName)
end)
return positions
end
- if source:bindValue() then
+ if source:bindValue() and source:get 'parent' then
if source:get 'in index' then
if not parser.grammar(newName, 'Exp') then
return positions