From 051111f98d7128c833eaa32423426829981b2aa3 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sun, 16 Apr 2023 14:13:25 +0200 Subject: [PATCH] fix(confirm): keep newlines in confirm message. Fixes #422 --- lua/noice/text/format/formatters.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/noice/text/format/formatters.lua b/lua/noice/text/format/formatters.lua index bae14f6..739fb46 100644 --- a/lua/noice/text/format/formatters.lua +++ b/lua/noice/text/format/formatters.lua @@ -172,6 +172,7 @@ function M.confirm(message, opts, input) for l, line in ipairs(input._lines) do if l ~= #input._lines then message:append(line) + message:newline() end end message:trim_empty_lines()