Skip to content

Commit 2898fd0

Browse files
committed
fix: make path separator system dependant
1 parent 684d9eb commit 2898fd0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lua/cmake-tools/scanner.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ local function derive_toolchain(prefix, c_name)
7171
end
7272

7373
local function get_path_executables()
74-
local path_dirs = vim.split(vim.env.PATH or "", ":", { plain = true })
74+
local separator = vim.uv.os_uname().sysname == "Windows_NT" and ";" or ":"
75+
local path_dirs = vim.split(vim.env.PATH or "", separator, { plain = true })
7576
local executables = {}
7677
for _, dir in ipairs(path_dirs) do
7778
local entries = vim.fn.readdir(dir)

0 commit comments

Comments
 (0)