stop updating on BufDelete event

This commit is contained in:
itchyny
2021-11-21 22:56:50 +09:00
parent b06d921023
commit a29b8331e1
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
" Filename: autoload/lightline.vim
" Author: itchyny
" License: MIT License
" Last Change: 2020/11/21 14:03:29.
" Last Change: 2021/11/21 22:54:46.
" =============================================================================
let s:save_cpo = &cpo
@@ -47,7 +47,7 @@ function! lightline#enable() abort
call lightline#update()
augroup lightline
autocmd!
autocmd WinEnter,BufEnter,BufDelete,SessionLoadPost,FileChangedShellPost * call lightline#update()
autocmd WinEnter,BufEnter,SessionLoadPost,FileChangedShellPost * call lightline#update()
if !has('patch-8.1.1715')
autocmd FileType qf call lightline#update()
endif

View File

@@ -2,7 +2,7 @@
" Filename: plugin/lightline.vim
" Author: itchyny
" License: MIT License
" Last Change: 2020/11/05 20:05:40.
" Last Change: 2021/11/21 22:54:41.
" =============================================================================
if exists('g:loaded_lightline') || v:version < 703
@@ -15,7 +15,7 @@ set cpo&vim
augroup lightline
autocmd!
autocmd WinEnter,BufEnter,BufDelete,SessionLoadPost,FileChangedShellPost * call lightline#update()
autocmd WinEnter,BufEnter,SessionLoadPost,FileChangedShellPost * call lightline#update()
if !has('patch-8.1.1715')
autocmd FileType qf call lightline#update()
endif