Make sure to reenable airline when enew layout is used

Close #175

Interestingly, BufUnload, BufDelete, or BufWipeout doesn't work.

Related:
- #173
- https://github.com/neovim/neovim/issues/2368
This commit is contained in:
Junegunn Choi 2016-07-19 20:39:51 +09:00
parent 78baf5517a
commit 8b93c05d28
No known key found for this signature in database
GPG key ID: 254BC280FEF9C627

View file

@ -97,7 +97,9 @@ if has('nvim') && get(g:, 'fzf_nvim_statusline', 1)
function! s:fzf_nvim_term()
if get(w:, 'airline_active', 0)
let w:airline_disabled = 1
autocmd BufWinLeave <buffer> let w:airline_disabled = 0
endif
autocmd WinEnter,ColorScheme <buffer> call s:fzf_restore_colors()
setlocal nospell
call s:fzf_restore_colors()
@ -106,7 +108,6 @@ if has('nvim') && get(g:, 'fzf_nvim_statusline', 1)
augroup _fzf_statusline
autocmd!
autocmd FileType fzf call s:fzf_nvim_term()
\| autocmd WinEnter,ColorScheme <buffer> call s:fzf_restore_colors()
augroup END
endif