From f793c88e87fb34681cd6116482a1af45a750b030 Mon Sep 17 00:00:00 2001 From: Emmanuel Touzery Date: Thu, 3 Oct 2024 19:37:53 +0200 Subject: [PATCH] fix: task render when newlines are present --- lua/overseer/task.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/overseer/task.lua b/lua/overseer/task.lua index ad5e1f0..0a469c3 100644 --- a/lua/overseer/task.lua +++ b/lua/overseer/task.lua @@ -181,6 +181,8 @@ function Task:render(lines, highlights, detail) else cmd_str = table.concat(cmd, " ") end + -- a command may contain newlines + cmd_str = cmd_str:gsub("\n", " ") table.insert(lines, cmd_str) end