diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-12 16:29:19 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-12 16:29:19 +0800 |
commit | 5138601e9a830d6391e97cbf8ff370cd37423aad (patch) | |
tree | 37ff405eee531029aff0006d475b104d52c49dce /make/bootstrap.lua | |
parent | e974091cf75f541a3fcb187c194763d857ba8f28 (diff) | |
download | lua-language-server-5138601e9a830d6391e97cbf8ff370cd37423aad.zip |
fix
Diffstat (limited to 'make/bootstrap.lua')
-rw-r--r-- | make/bootstrap.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/make/bootstrap.lua b/make/bootstrap.lua index d379f599..a43ede88 100644 --- a/make/bootstrap.lua +++ b/make/bootstrap.lua @@ -29,8 +29,6 @@ if main then for j = #arg - main + 1, #arg do
arg[j] = nil
end
-else
- arg[0] = 'main.lua'
end
local root; do
@@ -48,6 +46,7 @@ local root; do end
local pattern = "["..sep.."][^"..sep.."]+"
root = package.cpath:match("([^;]+)"..pattern..pattern..pattern.."$")
+ arg[0] = root .. package.config:sub(1,1) .. 'main.lua'
end
end
|