summaryrefslogtreecommitdiff
path: root/autoload/ale.vim
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2020-08-31 08:31:44 +0100
committerGitHub <noreply@github.com>2020-08-31 08:31:44 +0100
commit4a91f92f2876bd25303f8bcb534ac5522fe36ff6 (patch)
treebf3172d4c99f8787e00e2e23c5199a195b6f9f83 /autoload/ale.vim
parent0989da4a38c80983548db623d407d7178f2452d5 (diff)
parent1c6b9354a825a0dbab310077dd05666b8e081974 (diff)
downloadale-4a91f92f2876bd25303f8bcb534ac5522fe36ff6.zip
Merge pull request #3078 from jgehrig/jg-issue2958
Issue 2958: Addtional ^M characters on Windows
Diffstat (limited to 'autoload/ale.vim')
-rw-r--r--autoload/ale.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim
index b75c9fc9..5ec22f57 100644
--- a/autoload/ale.vim
+++ b/autoload/ale.vim
@@ -263,6 +263,8 @@ function! ale#GetLocItemMessage(item, format_string) abort
let l:msg = substitute(l:msg, '\V%linter%', '\=l:linter_name', 'g')
" Replace %s with the text.
let l:msg = substitute(l:msg, '\V%s', '\=a:item.text', 'g')
+ " Windows may insert carriage return line endings (^M), strip these characters.
+ let l:msg = substitute(l:msg, '\r', '', 'g')
return l:msg
endfunction