fix(cache): use abs path

This commit is contained in:
Barrett Ruth 2025-09-19 23:30:07 -04:00
parent 13005a3caa
commit 77aa5dd4c4
2 changed files with 1 additions and 3 deletions

View file

@ -139,8 +139,6 @@ function M.setup(user_config)
return false
end
-- Allow any language and extension configurations
return true
end,
'contest configuration',

View file

@ -140,7 +140,7 @@ local function setup_problem(contest_id, problem_id, language)
config.hooks.setup_code(ctx)
end
cache.set_file_state(ctx.source_file, state.platform, contest_id, problem_id, language)
cache.set_file_state(vim.fn.expand('%:p'), state.platform, contest_id, problem_id, language)
logger.log(('switched to problem %s'):format(ctx.problem_name))
end