update statusline on FileChangedShellPost event (close #430)

This commit is contained in:
itchyny
2020-03-16 19:11:43 +09:00
parent e8577f3654
commit 893bd90787
2 changed files with 4 additions and 4 deletions

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/02/03 22:09:14. " Last Change: 2020/03/16 19:10:15.
" ============================================================================= " =============================================================================
let s:save_cpo = &cpo let s:save_cpo = &cpo
@@ -39,7 +39,7 @@ function! lightline#enable() abort
call lightline#update() call lightline#update()
augroup lightline augroup lightline
autocmd! autocmd!
autocmd WinEnter,BufEnter,BufDelete,SessionLoadPost * call lightline#update() autocmd WinEnter,BufEnter,BufDelete,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

View File

@@ -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/02/03 22:03:24. " Last Change: 2020/03/16 19:08:41.
" ============================================================================= " =============================================================================
if exists('g:loaded_lightline') || v:version < 700 if exists('g:loaded_lightline') || v:version < 700
@@ -15,7 +15,7 @@ set cpo&vim
augroup lightline augroup lightline
autocmd! autocmd!
autocmd WinEnter,BufEnter,BufDelete,SessionLoadPost * call lightline#update() autocmd WinEnter,BufEnter,BufDelete,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