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

Fix #183
pull/642/head
Junegunn Choi 8 years ago
parent 42e4992f06
commit 7cef92fffe
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -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)

Loading…
Cancel
Save