Skip to content

Commit 5fc40e9

Browse files
DenzellceWolf
authored andcommitted
fix(presets): regression handling bom in preset files
1 parent 9e65028 commit 5fc40e9

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)