mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-19 20:14:58 +02:00
highlighter: always consider terminal to be non-modified
references #2506
This commit is contained in:
parent
b5f2eb418a
commit
fd56e87d00
@ -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'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user