summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-08-02 02:25:02 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-08-02 02:25:02 +0900
commit42e4992f0685b7f304d035b549beef10119f44fd (patch)
tree4b4c31c3ee13599880c0e99d4644346bfb7f14cb /plugin
parenta6066175c6d574015d2afdb90d8dff5af1fd24ba (diff)
[vim] Make sure to delete fzf buffer
Close junegunn/fzf.vim#173 and #630
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index bf65cd0a..dc18470c 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -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)