highlighter: always consider terminal to be non-modified

references #2506
This commit is contained in:
Christian Brabandt 2022-07-12 22:38:56 +02:00
parent b5f2eb418a
commit fd56e87d00
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -170,7 +170,7 @@ if !exists(":def") || !airline#util#has_vim9_script()
call airline#highlighter#highlight_modified_inactive(winbufnr(winnr))
endfor
call airline#highlighter#highlight(['inactive'])
if getbufvar( bufnr('%'), '&modified' )
if getbufvar( bufnr('%'), '&modified' ) && &buftype != 'terminal'
call airline#highlighter#highlight(['normal', 'modified'])
else
call airline#highlighter#highlight(['normal'])
@ -514,7 +514,7 @@ else
airline#highlighter#highlight_modified_inactive(winbufnr(winnr))
endfor
airline#highlighter#highlight(['inactive'])
if getbufvar( bufnr('%'), '&modified' )
if getbufvar( bufnr('%'), '&modified' ) && &buftype != 'terminal'
airline#highlighter#highlight(['normal', 'modified'])
else
airline#highlighter#highlight(['normal'])