mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-22 20:01:26 +08:00
@@ -179,10 +179,12 @@ function! airline#check_mode(winnr)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let mode_string = join(l:mode)
|
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_modified_inactive(context.bufnr)
|
||||||
call airline#highlighter#highlight(l:mode)
|
call airline#highlighter#highlight(l:mode)
|
||||||
let w:airline_lastmode = mode_string
|
let w:airline_lastmode = mode_string
|
||||||
|
let s:airline_lastmode = l:mode
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user