Remove %@...@ patterns in evaluate_tabline if has('tablineat')
This commit is contained in:
parent
a7bff3b30b
commit
e6b6f36d90
@ -91,6 +91,9 @@ function! s:evaluate_tabline(tabline)
|
|||||||
let tabline = substitute(tabline, '%\d\+[TX]', '', 'g')
|
let tabline = substitute(tabline, '%\d\+[TX]', '', 'g')
|
||||||
let tabline = substitute(tabline, '%=', '', 'g')
|
let tabline = substitute(tabline, '%=', '', 'g')
|
||||||
let tabline = substitute(tabline, '%\d*\*', '', 'g')
|
let tabline = substitute(tabline, '%\d*\*', '', 'g')
|
||||||
|
if has('tablineat')
|
||||||
|
let tabline = substitute(tabline, '%@[^@]\+@', '', 'g')
|
||||||
|
endif
|
||||||
return tabline
|
return tabline
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user