From 6819443d6a44aaf8f52028c15c76c6cf3090f420 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Wed, 14 Mar 2018 15:07:41 +0000 Subject: [PATCH] Fix typo in evaluating %( %) rules --- autoload/airline/extensions/tabline/tabs.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline/tabs.vim b/autoload/airline/extensions/tabline/tabs.vim index cc4aefc..a04af46 100644 --- a/autoload/airline/extensions/tabline/tabs.vim +++ b/autoload/airline/extensions/tabline/tabs.vim @@ -29,7 +29,7 @@ function! s:evaluate_tabline(tabline) let tabline = a:tabline let tabline = substitute(tabline, '%{\([^}]\+\)}', '\=eval(submatch(1))', 'g') let tabline = substitute(tabline, '%#[^#]\+#', '', 'g') - let tabline = substitute(tabline, '%(\([^)]\+\))', '\1', 'g') + let tabline = substitute(tabline, '%(\([^)]\+\)%)', '\1', 'g') let tabline = substitute(tabline, '%\d\+[TX]', '', 'g') let tabline = substitute(tabline, '%=', ' ', 'g') let tabline = substitute(tabline, '%\d*\*', '', 'g')