From a29b8331e1bb36b09bafa30c3aa77e89cdd832b2 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 21 Nov 2021 22:56:50 +0900 Subject: [PATCH] stop updating on BufDelete event --- autoload/lightline.vim | 4 ++-- plugin/lightline.vim | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index 5862557..e1f09ca 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -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 diff --git a/plugin/lightline.vim b/plugin/lightline.vim index e1254b7..1f5f998 100644 --- a/plugin/lightline.vim +++ b/plugin/lightline.vim @@ -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