[vim] Delete fzf buffer even when exit status is non-zero

Fix #183
This commit is contained in:
Junegunn Choi 2016-08-02 03:30:17 +09:00
parent 42e4992f06
commit 7cef92fffe
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -452,14 +452,14 @@ function! s:execute_term(dict, command, temps) abort
execute self.ppos.win.'wincmd w'
endif
if !s:exit_handler(a:code, self.command, 1)
return
endif
if bufexists(self.buf)
execute 'bd!' self.buf
endif
if !s:exit_handler(a:code, self.command, 1)
return
endif
call s:pushd(self.dict)
let lines = s:collect(self.temps)
call s:callback(self.dict, lines)