From 63f9abd3f245b1d241c1a6f68f912b9188483eed Mon Sep 17 00:00:00 2001 From: rosston Date: Mon, 22 Feb 2016 23:07:27 -0500 Subject: [PATCH] Fix highlighting of current/modified buffer. Fixes broken variable reference caused by e4ef624 (#952). --- autoload/airline/extensions/tabline.vim | 1 - autoload/airline/extensions/tabline/buffers.vim | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index de6d55e4..23f52785 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -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' diff --git a/autoload/airline/extensions/tabline/buffers.vim b/autoload/airline/extensions/tabline/buffers.vim index c35507ca..56160224 100644 --- a/autoload/airline/extensions/tabline/buffers.vim +++ b/autoload/airline/extensions/tabline/buffers.vim @@ -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)