Skip to content
Snippets Groups Projects
Unverified Commit 7cef92ff authored by Junegunn Choi's avatar Junegunn Choi
Browse files

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

Fix #183
parent 42e4992f
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment