From 3198cb98b8067fb424801b6bb8c6fbadc8443e86 Mon Sep 17 00:00:00 2001 From: Marco Kellershoff Date: Fri, 6 Sep 2024 20:21:12 +0200 Subject: [PATCH] fix(replay) --- lua/kulala/cmd/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/kulala/cmd/init.lua b/lua/kulala/cmd/init.lua index 52d8cfc..ccb3cf8 100644 --- a/lua/kulala/cmd/init.lua +++ b/lua/kulala/cmd/init.lua @@ -85,7 +85,7 @@ M.run_parser = function(req, callback) Logger.warn("Prompt failed.") return end - local result = PARSER.parse(req.start_line) + local result = req.cmd ~= nil and req or PARSER.parse(req.start_line) vim.fn.jobstart(result.cmd, { on_stderr = function(_, datalist) if callback then