From 70dd0655d25dd05968cc057e776b0957acb1ab5b Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 16 Mar 2017 13:13:16 +0100 Subject: [PATCH] Do not trigger on SessionLoadPost autocommand This basically reverts commit 64a3bfd closes #1444 --- plugin/airline.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index 03dbe48..cbd3e28 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -43,7 +43,6 @@ function! s:on_window_changed() " different autocommands. let l:key = [bufnr('%'), winnr(), winnr('$'), tabpagenr()] if get(g:, 'airline_last_window_changed', []) == l:key - \ && &stl is# '%!airline#statusline('.winnr().')' return endif 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 GUIEnter,ColorScheme * call on_colorscheme_changed() - autocmd SessionLoadPost,VimEnter,WinEnter,BufWinEnter,FileType,BufUnload * + autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload * \ call on_window_changed() if exists('#CompleteDone') autocmd CompleteDone * call on_window_changed()