Merge pull request #1057 from illicium/1055-buffer-highlight
Fix buffer modified highlighting being set from wrong buffer
This commit is contained in:
commit
23fb126322
|
@ -66,7 +66,11 @@ function! airline#extensions#tabline#buffers#get()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let group = airline#extensions#tabline#group_of_bufnr(tab_bufs, nr)
|
let group = airline#extensions#tabline#group_of_bufnr(tab_bufs, nr)
|
||||||
let s:current_modified = (group == 'airline_tabmod') ? 1 : 0
|
|
||||||
|
if nr == cur
|
||||||
|
let s:current_modified = (group == 'airline_tabmod') ? 1 : 0
|
||||||
|
endif
|
||||||
|
|
||||||
if s:buffer_idx_mode
|
if s:buffer_idx_mode
|
||||||
if len(s:number_map) > 0
|
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)
|
call b.add_section(group, s:spc . get(s:number_map, l:index, '') . '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)' . s:spc)
|
||||||
|
|
Loading…
Reference in New Issue