autoload: bufnr argument of #highlight function is actually a string

This commit is contained in:
Christian 2020-11-18 12:35:58 +01:00 committed by Christian Brabandt
parent f5e2f97003
commit f615f8bad3
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

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