change events for updating the statusline, from BufWinEnter,FileType to BufEnter (close #352)

- fix the active statusline after updating the quickfix/location list
- use g:qf_disable_statusline to disable the statusline of the default ftplugin
- for before Vim 8.1.1715, keep using FileType event to overwrite the statusline of the quickfix window
This commit is contained in:
itchyny
2019-07-30 18:52:28 +09:00
parent f2a1f47c85
commit 1afe1e9bd5
5 changed files with 43 additions and 4 deletions

View File

@@ -18,3 +18,5 @@ endfunction
function! SID(name) abort
return function(printf("\<SNR>%d_%s", s:sid('autoload/lightline.vim'), a:name))
endfunction
filetype plugin on