Create AirlineModeChanged autocmd

This commit is contained in:
Liam Fleming 2018-06-28 18:44:26 +01:00
parent b790fd2120
commit 781c40bb3d
1 changed files with 1 additions and 0 deletions

View File

@ -189,6 +189,7 @@ function! airline#check_mode(winnr)
if get(w:, 'airline_lastmode', '') != mode_string
call airline#highlighter#highlight_modified_inactive(context.bufnr)
call airline#highlighter#highlight(l:mode, context.bufnr)
silent doautocmd User AirlineModeChanged
let w:airline_lastmode = mode_string
endif