From 893ac34cca903df14dabee7bdee7a018675c16d4 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 23 Apr 2019 15:58:10 +0100 Subject: [PATCH] Fix #2452 - Strip trailing spaces off sign text automatically --- autoload/ale/sign.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.