From e6b6f36d90d5e335b0a7f1b2de57cd1e4efc6acf Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Thu, 15 Mar 2018 19:21:15 +0000 Subject: [PATCH] Remove %@...@ patterns in evaluate_tabline if has('tablineat') --- autoload/airline/extensions/tabline/builder.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/airline/extensions/tabline/builder.vim b/autoload/airline/extensions/tabline/builder.vim index 8b1dfa43..976b3572 100644 --- a/autoload/airline/extensions/tabline/builder.vim +++ b/autoload/airline/extensions/tabline/builder.vim @@ -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