Skip to content

Commit

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

0 comments on commit 76fcb6e

Please sign in to comment.