mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 01:50:10 +08:00
commit
3d148154e1
|
@ -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 ''
|
||||
|
|
Loading…
Reference in New Issue
Block a user