Skip to content

Commit 04a1bb6

Browse files
committed
fix(diagnostics): use multiline instead of replacing NL
1 parent cf0dffd commit 04a1bb6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lua/fzf-lua/providers/diagnostic.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ M.diagnostics = function(opts)
171171
filename = filename,
172172
lnum = row + 1,
173173
col = col + 1,
174-
text = vim.trim(opts.multiline
175-
and diag.message:gsub("[\n]", " ")
176-
or diag.message:match("^[^\n]+")),
174+
text = vim.trim(opts.multiline and diag.message or diag.message:match("^[^\n]+")),
177175
type = diag.severity or 1
178176
}
179177
return buffer_diag

0 commit comments

Comments
 (0)