mirror of
https://github.com/dense-analysis/ale
synced 2024-12-22 14:13:12 +00:00
Fix #2452 - Strip trailing spaces off sign text automatically
This commit is contained in:
parent
fcc2c3ba71
commit
893ac34cca
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user