From 08d068fb1668b7f898af721cbc8a1ae72ddf6565 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 3 May 2021 12:33:20 +0200 Subject: [PATCH] fix: replace possible newlines in rendered text --- lua/trouble/text.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/trouble/text.lua b/lua/trouble/text.lua index 5c452df8..077f0581 100644 --- a/lua/trouble/text.lua +++ b/lua/trouble/text.lua @@ -19,6 +19,7 @@ function Text:nl() end function Text:render(str, group, opts) + str = str:gsub("[\n]", " ") if type(opts) == "string" then opts = {append = opts} end opts = opts or {}