Skip to content

Commit 2cfff79

Browse files
authored
bug: Ensure filepaths are expanded to be accessible (#4)
1 parent 6757ee1 commit 2cfff79

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/aoc/config.lua

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ local default_opts = {
1616

1717
M.init = function(args)
1818
M.options = vim.tbl_deep_extend("force", default_opts, args or {})
19+
20+
M.options.session_filepath = vim.fn.expand(M.options.session_filepath)
21+
if M.options.puzzle_input.alternative_filepath then
22+
M.options.alternative_filepath = vim.fn.expand(M.options.alternative_filepath)
23+
end
1924
end
2025

2126
M.debug = function()

0 commit comments

Comments
 (0)