Remove %@...@ patterns in evaluate_tabline if has('tablineat')

This commit is contained in:
mrmr1993 2018-03-15 19:21:15 +00:00
parent a7bff3b30b
commit e6b6f36d90
1 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,9 @@ function! s:evaluate_tabline(tabline)
let tabline = substitute(tabline, '%\d\+[TX]', '', 'g')
let tabline = substitute(tabline, '%=', '', 'g')
let tabline = substitute(tabline, '%\d*\*', '', 'g')
if has('tablineat')
let tabline = substitute(tabline, '%@[^@]\+@', '', 'g')
endif
return tabline
endfunction