Fix #2452 - Strip trailing spaces off sign text automatically
This commit is contained in:
parent
711de2c1be
commit
0927634916
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Reference in a new issue