Merge pull request #1006 from chrisbra/tabpagenr

check tabpagenr
This commit is contained in:
Christian Brabandt 2016-02-07 09:10:43 +01:00
commit 3d148154e1
1 changed files with 3 additions and 1 deletions

View File

@ -179,10 +179,12 @@ function! airline#check_mode(winnr)
endif
let mode_string = join(l:mode)
if get(w:, 'airline_lastmode', '') != mode_string
if get(w:, 'airline_lastmode', '') != mode_string ||
\ get(s:, 'airline_lastmode', []) != l:mode
call airline#highlighter#highlight_modified_inactive(context.bufnr)
call airline#highlighter#highlight(l:mode)
let w:airline_lastmode = mode_string
let s:airline_lastmode = l:mode
endif
return ''