summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-08-19 12:00:43 +0800
committerGitHub <noreply@github.com>2024-08-19 12:00:43 +0800
commit82af2563d568b087bd0059f00d8178dd92af7324 (patch)
treee122c1d88abe97d478ce27a4238a8cdada93aa43 /script
parentb41adb33c37781bd3bcf596dc510263973b85c70 (diff)
parent3a34b724f138ccd545cd9354d5e090d2c76789c2 (diff)
downloadlua-language-server-82af2563d568b087bd0059f00d8178dd92af7324.zip
Merge branch 'master' into dev
Diffstat (limited to 'script')
-rw-r--r--script/provider/provider.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 6a4b2406..3d1c5d52 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -222,7 +222,7 @@ m.register 'workspace/didRenameFiles' {
for _, uri in ipairs(childs) do
if files.exists(uri) then
local ouri = uri
- local tail = ouri:sub(#oldUri)
+ local tail = ouri:sub(#oldUri + 1)
local nuri = file.newUri .. tail
renames[#renames+1] = {
oldUri = ouri,