diff options
Diffstat (limited to 'script/core/rename.lua')
-rw-r--r-- | script/core/rename.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/rename.lua b/script/core/rename.lua index 6b67d4be..bc85ac14 100644 --- a/script/core/rename.lua +++ b/script/core/rename.lua @@ -443,7 +443,7 @@ function m.rename(uri, pos, newname) if not newname then return nil end - local ast = files.getAst(uri) + local ast = files.getState(uri) if not ast then return nil end @@ -492,7 +492,7 @@ function m.rename(uri, pos, newname) end function m.prepareRename(uri, pos) - local ast = files.getAst(uri) + local ast = files.getState(uri) if not ast then return nil end |