summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-23 17:38:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-23 17:38:38 +0800
commit61d9a99cb32487defbf72486d079e9c7324e4e51 (patch)
treedc1f81dfb50ac5e0254ededb101611f8bf48c6ac /script/workspace
parent5d46db21e707be3b23655ef7fc1dfc41c36464a2 (diff)
downloadlua-language-server-61d9a99cb32487defbf72486d079e9c7324e4e51.zip
update
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/workspace.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 4c0011b3..3aebc5e0 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -48,7 +48,7 @@ end
function m.create(uri)
log.info('Workspace create: ', uri)
if uri == furi.encode '/'
- or uri == furi.encode(os.getenv 'HOME') then
+ or uri == furi.encode(os.getenv 'HOME' or '') then
client.showMessage('Error', lang.script('WORKSPACE_NOT_ALLOWED', furi.decode(uri)))
return
end