mirror of
				https://github.com/vim-airline/vim-airline.git
				synced 2025-10-31 11:44:34 +01:00 
			
		
		
		
	Fix highlighting of current/modified buffer.
Fixes broken variable reference caused by e4ef624 (#952).
This commit is contained in:
		
							parent
							
								
									cf9eebcc45
								
							
						
					
					
						commit
						63f9abd3f2
					
				| @ -170,7 +170,6 @@ function! airline#extensions#tabline#group_of_bufnr(tab_bufs, bufnr) | |||||||
|     else |     else | ||||||
|       let group = 'airline_tabsel' |       let group = 'airline_tabsel' | ||||||
|     endif |     endif | ||||||
|     let s:current_modified = (group == 'airline_tabmod') ? 1 : 0 |  | ||||||
|   else |   else | ||||||
|     if g:airline_detect_modified && getbufvar(a:bufnr, '&modified') |     if g:airline_detect_modified && getbufvar(a:bufnr, '&modified') | ||||||
|       let group = 'airline_tabmod_unsel' |       let group = 'airline_tabmod_unsel' | ||||||
|  | |||||||
| @ -66,6 +66,7 @@ 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 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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user