From 14d208b1fa5f4308383e3ce429d57c84423029f9 Mon Sep 17 00:00:00 2001 From: Zandr Martin Date: Tue, 20 Feb 2018 07:33:36 -0500 Subject: [PATCH] close BufTabLine autocmd group --- plugin/buftabline.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/buftabline.vim b/plugin/buftabline.vim index 7b51ac3..091a5f7 100644 --- a/plugin/buftabline.vim +++ b/plugin/buftabline.vim @@ -29,9 +29,6 @@ endif scriptencoding utf-8 -augroup BufTabLine -autocmd! - hi default link BufTabLineCurrent TabLineSel hi default link BufTabLineActive PmenuSel hi default link BufTabLineHidden TabLine @@ -168,10 +165,13 @@ function! buftabline#update(zombie) set tabline=%!buftabline#render() endfunction +augroup BufTabLine +autocmd! autocmd VimEnter * call buftabline#update(0) autocmd TabEnter * call buftabline#update(0) autocmd BufAdd * call buftabline#update(0) autocmd BufDelete * call buftabline#update(str2nr(expand(''))) +augroup END for s:n in range(1, g:buftabline_plug_max) + ( g:buftabline_plug_max > 0 ? [-1] : [] ) let s:b = s:n == -1 ? -1 : s:n - 1