Skip to content

Commit

Permalink
fix: removed space betweend rendering of source + code
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Apr 23, 2021
1 parent 7aabea5 commit b676029
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/trouble/renderer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ function renderer.render_diagnostics(view, text, items)
text:render(diag.text, "Text" .. diag.type, " ")
-- text:render(diag.type, diag.type, " ")

if diag.source then text:render(diag.source, "Source", " ") end
if diag.code then
text:render("(" .. diag.code .. ")", "Code", " ")
end
if diag.source then text:render(diag.source, "Source") end
if diag.code then text:render("(" .. diag.code .. ")", "Code") end

text:render(" ")

text:render("[" .. diag.lnum .. ", " .. diag.col .. "]", "Location")
text:nl()
Expand Down

0 comments on commit b676029

Please sign in to comment.