mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-26 20:16:32 +00:00
[vim] Make sure to delete fzf buffer
Close junegunn/fzf.vim#173 and #630
This commit is contained in:
1 file changed
+4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user