update preview in extensions.vim

This commit is contained in:
kazukazuinaina 2020-01-12 01:27:24 +09:00
parent c1de3d3370
commit f0317f6dd4
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ function! airline#extensions#apply(...)
let w:airline_section_y = ''
endif
if &previewwindow
if &previewwindow && empty(get(w:, 'airline_section_a', ''))
let w:airline_section_a = 'Preview'
let w:airline_section_b = ''
let w:airline_section_c = bufname(winbufnr(winnr()))