summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-18 20:33:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-18 20:33:35 +0800
commit81a3ad79e4f057d5670689e27823acf8391ce621 (patch)
treebb0ea1b2b829b62262b02c24d38792c9ace429e6 /script
parentca32571ae9a140427dd2f5198802473c31b88fb7 (diff)
parent78b9c3c05497eba53d9f618a79218a39c80c584d (diff)
downloadlua-language-server-81a3ad79e4f057d5670689e27823acf8391ce621.zip
Merge remote-tracking branch 'origin/master' into 2.0.0
Diffstat (limited to 'script')
-rw-r--r--script/workspace/workspace.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index fd0978b3..72a689c1 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -349,11 +349,11 @@ function m.findUrisByFilePath(path)
if platform.OS ~= 'Windows' then
uri = files.getOriginUri(uri)
end
- if not uri:find(lpath, 1, true) then
+ local curPath = furi.decode(files.getOriginUri(uri))
+ if not curPath:find(lpath, 1, true) then
goto CONTINUE
end
local pathLen = #path
- local curPath = furi.decode(files.getOriginUri(uri))
local curLen = #curPath
local seg = curPath:sub(curLen - pathLen, curLen - pathLen)
if seg == '/' or seg == '\\' or seg == '' then