Merge pull request #1047 from rosston/fix-current-modified-buffer

Fix highlighting of current/modified buffer.
This commit is contained in:
Christian Brabandt 2016-02-23 12:05:56 +01:00
commit adbfda43f8
2 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,6 @@ function! airline#extensions#tabline#group_of_bufnr(tab_bufs, bufnr)
else
let group = 'airline_tabsel'
endif
let s:current_modified = (group == 'airline_tabmod') ? 1 : 0
else
if g:airline_detect_modified && getbufvar(a:bufnr, '&modified')
let group = 'airline_tabmod_unsel'

View File

@ -66,6 +66,7 @@ function! airline#extensions#tabline#buffers#get()
endif
let group = airline#extensions#tabline#group_of_bufnr(tab_bufs, nr)
let s:current_modified = (group == 'airline_tabmod') ? 1 : 0
if s:buffer_idx_mode
if len(s:number_map) > 0
call b.add_section(group, s:spc . get(s:number_map, l:index, '') . '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)' . s:spc)