Skip to content

Commit fd57a1b

Browse files
author
Denzel
committed
fix(presets): regression handling bom in preset files
1 parent b3a5d4d commit fd57a1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/cmake-tools/presets.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ local function decode(file, visited)
3838

3939
visited[abs_file_path] = true
4040

41-
local data = vim.fn.json_decode(file_path:read())
41+
local data = vim.fn.json_decode(vim.fn.readfile(abs_file_path))
4242
if not data then
4343
error(string.format("Could not parse %s", abs_file_path))
4444
end

0 commit comments

Comments
 (0)