Do not trigger on SessionLoadPost autocommand
This basically reverts commit 64a3bfd
closes #1444
This commit is contained in:
parent
46b0b6bf5a
commit
70dd0655d2
@ -43,7 +43,6 @@ function! s:on_window_changed()
|
|||||||
" different autocommands.
|
" different autocommands.
|
||||||
let l:key = [bufnr('%'), winnr(), winnr('$'), tabpagenr()]
|
let l:key = [bufnr('%'), winnr(), winnr('$'), tabpagenr()]
|
||||||
if get(g:, 'airline_last_window_changed', []) == l:key
|
if get(g:, 'airline_last_window_changed', []) == l:key
|
||||||
\ && &stl is# '%!airline#statusline('.winnr().')'
|
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let g:airline_last_window_changed = l:key
|
let g:airline_last_window_changed = l:key
|
||||||
@ -90,7 +89,7 @@ function! s:airline_toggle()
|
|||||||
autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter')
|
autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter')
|
||||||
|
|
||||||
autocmd GUIEnter,ColorScheme * call <sid>on_colorscheme_changed()
|
autocmd GUIEnter,ColorScheme * call <sid>on_colorscheme_changed()
|
||||||
autocmd SessionLoadPost,VimEnter,WinEnter,BufWinEnter,FileType,BufUnload *
|
autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload *
|
||||||
\ call <sid>on_window_changed()
|
\ call <sid>on_window_changed()
|
||||||
if exists('#CompleteDone')
|
if exists('#CompleteDone')
|
||||||
autocmd CompleteDone * call <sid>on_window_changed()
|
autocmd CompleteDone * call <sid>on_window_changed()
|
||||||
|
Loading…
Reference in New Issue
Block a user