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