mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-08 11:33:53 -05:00
stop updating on BufDelete event
This commit is contained in:
@@ -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/21 14:03:29.
|
" Last Change: 2021/11/21 22:54:46.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -47,7 +47,7 @@ function! lightline#enable() abort
|
|||||||
call lightline#update()
|
call lightline#update()
|
||||||
augroup lightline
|
augroup lightline
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd WinEnter,BufEnter,BufDelete,SessionLoadPost,FileChangedShellPost * call lightline#update()
|
autocmd WinEnter,BufEnter,SessionLoadPost,FileChangedShellPost * call lightline#update()
|
||||||
if !has('patch-8.1.1715')
|
if !has('patch-8.1.1715')
|
||||||
autocmd FileType qf call lightline#update()
|
autocmd FileType qf call lightline#update()
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
" Filename: plugin/lightline.vim
|
" Filename: plugin/lightline.vim
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" 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
|
if exists('g:loaded_lightline') || v:version < 703
|
||||||
@@ -15,7 +15,7 @@ set cpo&vim
|
|||||||
|
|
||||||
augroup lightline
|
augroup lightline
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd WinEnter,BufEnter,BufDelete,SessionLoadPost,FileChangedShellPost * call lightline#update()
|
autocmd WinEnter,BufEnter,SessionLoadPost,FileChangedShellPost * call lightline#update()
|
||||||
if !has('patch-8.1.1715')
|
if !has('patch-8.1.1715')
|
||||||
autocmd FileType qf call lightline#update()
|
autocmd FileType qf call lightline#update()
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user