fix auto select compiler bug

This commit is contained in:
Ivar Fatland
2026-09-02 12:44:10 +02:00
parent e0a1c1b00f
commit bda73785cc
+2 -7
View File
@@ -280,8 +280,7 @@ do
return vim.fn.globpath(dir, glob_pattern, false, false, false) ~= ''
end
local all_folders_till_root = nil
do
local all_folders_till_root = function()
local cwd = vim.fn.getcwd()
local folders = {cwd} -- array of all folders from cwd to root
for dir in vim.fs.parents(cwd) do
@@ -304,11 +303,7 @@ do
return i, f
end
---return iterator starting from cwd and going upwards until the project
---root is found by looking for the .git folder.
all_folders_till_root = function()
return iter, nil, 0
end
return iter, nil, 0
end
---@param glob_pattern string