Skip to content

Commit

Permalink
[vim] Delete fzf buffer even when exit status is non-zero
Browse files Browse the repository at this point in the history
Fix #183
  • Loading branch information
junegunn committed Aug 1, 2016
1 parent 42e4992 commit 7cef92f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/fzf.vim
Expand Up @@ -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)
Expand Down

1 comment on commit 7cef92f

@junegunn
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invalid issue reference. junegunn/fzf.vim#183

Please sign in to comment.