summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorJethro Shuwen Sun <jethro.sun7@gmail.com>2019-04-15 09:36:18 -0400
committerw0rp <w0rp@users.noreply.github.com>2019-04-15 14:36:18 +0100
commit7f31065fce89cca492c21c8bd73c74aa9f9432b2 (patch)
tree2f385d021a66b0d426948f5d4cd86fd8b75657d2 /autoload
parent61c1ddd90429c2604867358aedc2456b560845f9 (diff)
downloadale-7f31065fce89cca492c21c8bd73c74aa9f9432b2.zip
improve the lsp diagnostic message format (#2425)
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/lsp/response.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/lsp/response.vim b/autoload/ale/lsp/response.vim
index b91d875b..9ce05260 100644
--- a/autoload/ale/lsp/response.vim
+++ b/autoload/ale/lsp/response.vim
@@ -28,7 +28,7 @@ function! ale#lsp#response#ReadDiagnostics(response) abort
for l:diagnostic in a:response.params.diagnostics
let l:severity = get(l:diagnostic, 'severity', 0)
let l:loclist_item = {
- \ 'text': l:diagnostic.message,
+ \ 'text': substitute(l:diagnostic.message, '\(\r\n\|\n\|\r\)', ' ', 'g'),
\ 'type': 'E',
\ 'lnum': l:diagnostic.range.start.line + 1,
\ 'col': l:diagnostic.range.start.character + 1,