make the mode and branch text window local

This commit is contained in:
Bailey Ling
2013-08-11 13:42:47 +00:00
parent 5d92aaecaa
commit 2a10bfc32f
3 changed files with 6 additions and 4 deletions

View File

@@ -168,9 +168,10 @@ function! airline#update_highlight()
else
let l:mode = ['normal']
endif
let g:airline_current_mode_text = get(g:airline_mode_map, l:m, l:m)
let w:airline_current_mode = get(g:airline_mode_map, l:m, l:m)
else
let l:mode = ['inactive']
let w:airline_current_mode = get(g:airline_mode_map, '__')
endif
if g:airline_detect_modified && &modified | call add(l:mode, 'modified') | endif