Revert "use autocmd! [group] to remove the auto-commands" to fix #528

This reverts commit 2d482e82f2.
This commit is contained in:
itchyny
2020-11-13 15:31:33 +09:00
parent 2d482e82f2
commit fdccae8c9d

View File

@@ -2,7 +2,7 @@
" Filename: autoload/lightline.vim " Filename: autoload/lightline.vim
" Author: itchyny " Author: itchyny
" License: MIT License " License: MIT License
" Last Change: 2020/11/10 22:25:26. " Last Change: 2020/11/05 20:04:51.
" ============================================================================= " =============================================================================
let s:save_cpo = &cpo let s:save_cpo = &cpo
@@ -55,7 +55,9 @@ function! lightline#enable() abort
autocmd ColorScheme * if !has('vim_starting') || expand('<amatch>') !=# 'macvim' autocmd ColorScheme * if !has('vim_starting') || expand('<amatch>') !=# 'macvim'
\ | call lightline#update() | call lightline#highlight() | endif \ | call lightline#update() | call lightline#highlight() | endif
augroup END augroup END
autocmd! lightline-disable augroup lightline-disable
autocmd!
augroup END
augroup! lightline-disable augroup! lightline-disable
endfunction endfunction
@@ -66,7 +68,9 @@ function! lightline#disable() abort
call settabwinvar(t, n, '&statusline', '') call settabwinvar(t, n, '&statusline', '')
endfor endfor
endfor endfor
autocmd! lightline augroup lightline
autocmd!
augroup END
augroup! lightline augroup! lightline
augroup lightline-disable augroup lightline-disable
autocmd! autocmd!