Ryan Rueger

ryan@rueg.re / picture / key / home
aboutsummaryrefslogtreecommitdiff
path: root/plugin/statusryne.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/statusryne.vim')
-rw-r--r--plugin/statusryne.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/statusryne.vim b/plugin/statusryne.vim
index 4b48024..c0ea3d8 100644
--- a/plugin/statusryne.vim
+++ b/plugin/statusryne.vim
@@ -377,7 +377,12 @@ function! TabLine()
" Number of buffers in tab.
let t:bcount = len(tabpagebuflist(t+1))
" Total amount of whitespace to fill, after considering curent tab label.
- let t:remainder = g:maxlabellen - len(g:tablabels[t])
+ if exists("g:statusryne_adaptive_padding") && g:statusryne_adaptive_padding == "1"
+ " Total amount of whitespace to fill, after considering curent tab label.
+ let t:remainder = g:maxlabellen - len(g:tablabels[t])
+ else
+ let t:remainder = 0
+ endif
let t:pad = t:remainder /2 + g:padding
" Iter over buffers in tab.