Skip to content

Commit

Permalink
close BufTabLine autocmd group
Browse files Browse the repository at this point in the history
  • Loading branch information
deathlyfrantic committed Feb 20, 2018
1 parent 3ddbc98 commit 14d208b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/buftabline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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('<abuf>')))
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
Expand Down

0 comments on commit 14d208b

Please sign in to comment.