From 9e5bf485dffb067dc931323e0cf7870c347fe959 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Thu, 31 Dec 2020 09:09:21 +0100 Subject: [PATCH] Fix problem in workspace for relative directory --- data/plugins/workspace.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/plugins/workspace.lua b/data/plugins/workspace.lua index 74afe658..98f11f00 100644 --- a/data/plugins/workspace.lua +++ b/data/plugins/workspace.lua @@ -133,7 +133,8 @@ local function relative_path(ref_dir, dir) for k = i, #ref_ls do ups = ups .. "../" end - return ups .. table.concat(dir_ls, "/", i) + local rel_path = ups .. table.concat(dir_ls, "/", i) + return rel_path ~= "" and rel_path or "." end