mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-25 23:14:50 +02:00
:AirlineRefresh
not work correctly
If active buffer is modified, `:AirlineRefresh` apply `normal` highlight instead of `normal_modified` highlight. No particular config is requiered to reproduce this bug. I see this bug with option `g:airline_skip_empty_sections` set. Add any modification at the active buffer return to normal mode, **do not save** and wait a few seconds, you can see highlight change to normal but file is modified. Without option `g:airline_skip_empty_sections`, add any modification at the active buffer return to normal mode and type `:AirlineRefresh` you can see change to bad highlight .
This commit is contained in:
parent
ea98b42a0d
commit
afb75adc11
@ -106,8 +106,11 @@ function! airline#highlighter#load_theme()
|
|||||||
for winnr in filter(range(1, winnr('$')), 'v:val != winnr()')
|
for winnr in filter(range(1, winnr('$')), 'v:val != winnr()')
|
||||||
call airline#highlighter#highlight_modified_inactive(winbufnr(winnr))
|
call airline#highlighter#highlight_modified_inactive(winbufnr(winnr))
|
||||||
endfor
|
endfor
|
||||||
call airline#highlighter#highlight(['inactive'])
|
if getbufvar( bufnr('%'), '&modified' )
|
||||||
call airline#highlighter#highlight(['normal'])
|
call airline#highlighter#highlight(['normal', 'modified'])
|
||||||
|
else
|
||||||
|
call airline#highlighter#highlight(['normal'])
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#highlighter#add_separator(from, to, inverse)
|
function! airline#highlighter#add_separator(from, to, inverse)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user