From 8b93c05d28d8a774b4cc11f252da79985ef5c26c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 19 Jul 2016 20:39:51 +0900 Subject: [PATCH] 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 --- plugin/fzf.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 9731350..2b6991a 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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 let w:airline_disabled = 0 endif + autocmd WinEnter,ColorScheme 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 call s:fzf_restore_colors() augroup END endif