summaryrefslogtreecommitdiff
path: root/script-beta/workspace/workspace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/workspace/workspace.lua')
-rw-r--r--script-beta/workspace/workspace.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/workspace/workspace.lua b/script-beta/workspace/workspace.lua
index ec7af5da..a4acac79 100644
--- a/script-beta/workspace/workspace.lua
+++ b/script-beta/workspace/workspace.lua
@@ -298,6 +298,9 @@ end
function m.getRelativePath(uri)
local path = furi.decode(uri)
+ if not m.path then
+ return m.normalize(path)
+ end
local _, pos = m.normalize(path):lower():find(m.path:lower(), 1, true)
if pos then
return m.normalize(path:sub(pos + 1))