Fix typo in evaluating %( %) rules

This commit is contained in:
mrmr1993 2018-03-14 15:07:41 +00:00
parent 980e78b4bf
commit 6819443d6a

View File

@ -29,7 +29,7 @@ function! s:evaluate_tabline(tabline)
let tabline = a:tabline let tabline = a:tabline
let tabline = substitute(tabline, '%{\([^}]\+\)}', '\=eval(submatch(1))', 'g') let tabline = substitute(tabline, '%{\([^}]\+\)}', '\=eval(submatch(1))', 'g')
let tabline = substitute(tabline, '%#[^#]\+#', '', '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, '%\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')