Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lua/orgmode/utils/fs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ function M.trim_common_root(paths)
end, paths)
end

local root = '/' .. table.concat(common_root, '/') .. '/'
local root = table.concat(common_root, '/') .. '/'
if vim.fn.has('win32') == 0 then
root = '/' .. root
end
local result = {}
for _, path in ipairs(paths) do
local relative_path = path:sub(#root + 1)
Expand Down