Merge pull request #1057 from illicium/1055-buffer-highlight

Fix buffer modified highlighting being set from wrong buffer
This commit is contained in:
Christian Brabandt 2016-02-25 16:27:13 +01:00
commit 23fb126322
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@ function! airline#extensions#tabline#buffers#get()
endif
let group = airline#extensions#tabline#group_of_bufnr(tab_bufs, nr)
if nr == cur
let s:current_modified = (group == 'airline_tabmod') ? 1 : 0
endif
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)