Skip to content

Commit

Permalink
fix: replace possible newlines in rendered text
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 3, 2021
1 parent 672b0a5 commit 08d068f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/trouble/text.lua
Expand Up @@ -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 {}

Expand Down

0 comments on commit 08d068f

Please sign in to comment.