mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 12:55:17 +00:00
[vim] Make sure to delete fzf buffer
Close junegunn/fzf.vim#173 and #630
This commit is contained in:
parent
a6066175c6
commit
42e4992f06
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user