From 0927634916746cc993b5c5378aac2a5281cc1227 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 23 Apr 2019 15:58:10 +0100 Subject: 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. -- cgit v1.2.3