diff options
author | w0rp <devw0rp@gmail.com> | 2019-04-23 15:58:10 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-04-23 15:59:05 +0100 |
commit | 0927634916746cc993b5c5378aac2a5281cc1227 (patch) | |
tree | 3f5e6ee2f9a7c6b5dc26a721904b4be9d29e3da7 | |
parent | 711de2c1be897a995085b5dec5df8f5c059da0cf (diff) | |
download | ale-0927634916746cc993b5c5378aac2a5281cc1227.zip |
Fix #2452 - Strip trailing spaces off sign text automatically
-rw-r--r-- | autoload/ale/sign.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/sign.vim b/autoload/ale/sign.vim index 933fc055..7395b0e2 100644 --- a/autoload/ale/sign.vim +++ b/autoload/ale/sign.vim @@ -66,7 +66,7 @@ endif " Spaces and backslashes need to be escaped for signs. function! s:EscapeSignText(sign_text) abort - return substitute(a:sign_text, '\\\| ', '\\\0', 'g') + return substitute(substitute(a:sign_text, ' *$', '', ''), '\\\| ', '\\\0', 'g') endfunction " Signs show up on the left for error markers. |