diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-25 17:59:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-25 17:59:26 +0800 |
commit | 85ff98421d8b5011ed084c2b45ba47843e20f3e9 (patch) | |
tree | db124da844c1dba7464229bb38adf4d94b36355d /script/workspace | |
parent | 6b7ea187b284c16050f1d8de0c4060f6a5bc498e (diff) | |
download | lua-language-server-85ff98421d8b5011ed084c2b45ba47843e20f3e9.zip |
fix #269
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/require-path.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua index 9004b39c..3ec2d6d1 100644 --- a/script/workspace/require-path.lua +++ b/script/workspace/require-path.lua @@ -33,6 +33,7 @@ function m.getVisiblePath(path, searchers) m.cache[path] = result local pos = 1 if libraryPath then + libraryPath = libraryPath:gsub('^[/\\]+', '') pos = #libraryPath + 2 end repeat |