[vim] Make sure to delete fzf buffer

Close junegunn/fzf.vim#173 and #630
This commit is contained in:
Junegunn Choi 2016-08-02 02:25:02 +09:00
parent a6066175c6
commit 42e4992f06
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -456,6 +456,10 @@ function! s:execute_term(dict, command, temps) abort
return
endif
if bufexists(self.buf)
execute 'bd!' self.buf
endif
call s:pushd(self.dict)
let lines = s:collect(self.temps)
call s:callback(self.dict, lines)