Skip to content

Commit

Permalink
fix(tests): don't try to index core if not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 committed Nov 1, 2024
1 parent dd7fa89 commit 7f5cc85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/care/menu/confirm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ return function(entry)
end
unblock()
vim.schedule(function()
require("care").core.context = require("care.context").new(require("care").core.context)
require("care").core.context =
require("care.context").new(require("care").core and require("care").core.context or nil)
require("care").core:complete(3)
end)
end

0 comments on commit 7f5cc85

Please sign in to comment.