Fix buffer modified highlighting being set from wrong buffer
Fixes #1055, cased by refactoring in e4ef624
(#952)
This commit is contained in:
parent
5ab8b754d8
commit
7453b5e15c
|
@ -66,7 +66,11 @@ 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 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)
|
||||
|
|
Loading…
Reference in New Issue