Replace %= with empty string in evaluate_tabline

This commit is contained in:
mrmr1993 2018-03-15 14:36:39 +00:00
parent a8f92cc68a
commit 2b0fe51f99

View File

@ -31,7 +31,7 @@ function! s:evaluate_tabline(tabline)
let tabline = substitute(tabline, '%#[^#]\+#', '', 'g')
let tabline = substitute(tabline, '%(\([^)]\+\)%)', '\1', 'g')
let tabline = substitute(tabline, '%\d\+[TX]', '', 'g')
let tabline = substitute(tabline, '%=', ' ', 'g')
let tabline = substitute(tabline, '%=', '', 'g')
let tabline = substitute(tabline, '%\d*\*', '', 'g')
return tabline
endfunction