summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-08-02 03:30:17 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-08-02 03:30:17 +0900
commit7cef92fffe4bf020fba08cdc8ad50b137e7b7974 (patch)
tree2f86fec28d4b13ee8fd869077bd652f3a972ddd3 /plugin
parent42e4992f0685b7f304d035b549beef10119f44fd (diff)
[vim] Delete fzf buffer even when exit status is non-zero
Fix #183
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index dc18470c..b7e7dc49 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -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)