fix(cache): use abs path
This commit is contained in:
parent
13005a3caa
commit
77aa5dd4c4
2 changed files with 1 additions and 3 deletions
|
|
@ -139,8 +139,6 @@ function M.setup(user_config)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Allow any language and extension configurations
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
'contest configuration',
|
'contest configuration',
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ local function setup_problem(contest_id, problem_id, language)
|
||||||
config.hooks.setup_code(ctx)
|
config.hooks.setup_code(ctx)
|
||||||
end
|
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))
|
logger.log(('switched to problem %s'):format(ctx.problem_name))
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue