summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-04-23 15:58:10 +0100
committerw0rp <devw0rp@gmail.com>2019-04-23 15:58:10 +0100
commit893ac34cca903df14dabee7bdee7a018675c16d4 (patch)
tree308f3038abe9952c6be6442b6b8e842f1c146ad8 /autoload
parentfcc2c3ba71afa2a7965f3c1e9ec8c03381178180 (diff)
downloadale-893ac34cca903df14dabee7bdee7a018675c16d4.zip
Fix #2452 - Strip trailing spaces off sign text automatically
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/sign.vim2
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.