From 7f5cc85a2d5afb4f7a17c0051fb8b06106c4c4f8 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 1 Nov 2024 16:57:09 +0100 Subject: [PATCH] fix(tests): don't try to index core if not existing --- lua/care/menu/confirm.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/care/menu/confirm.lua b/lua/care/menu/confirm.lua index eb56115..1300f86 100644 --- a/lua/care/menu/confirm.lua +++ b/lua/care/menu/confirm.lua @@ -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