From 05995a20dfb9022eeda5d18af4179deb05f1b4b3 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Mon, 8 Jul 2013 22:57:22 +0000 Subject: [PATCH] fix regression with modified state being lost when switching windows. --- plugin/airline.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index 400634f8..3dca5034 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -38,6 +38,7 @@ function! s:init() if !s:airline_initialized call airline#extensions#load() call airline#update_externals() + call airline#highlight(['normal']) call s:check_defined('g:airline_section_a', '%{g:airline_current_mode_text}') call s:check_defined('g:airline_section_b', '%{g:airline_externals_fugitive}') call s:check_defined('g:airline_section_c', g:airline_externals_bufferline) @@ -53,6 +54,5 @@ augroup airline au! autocmd ColorScheme * call airline#highlight(['normal']) autocmd WinLeave * call airline#update_statusline(0) - autocmd WinEnter,BufWinEnter,FileType * - \ call init() | call airline#highlight(['normal']) | call airline#update_statusline(1) + autocmd WinEnter,BufWinEnter,FileType * call init() | call airline#update_statusline(1) augroup END