From 8b060037c9fd5961f8de6b9da674d5a29a77334e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 18 Nov 2020 15:53:10 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A0=E5=B7=A5=E4=BD=9C=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E6=97=B6=E7=9A=84=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/workspace/workspace.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script-beta/workspace') 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)) -- cgit v1.2.3