summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-12-05 23:50:55 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-12-05 23:50:55 +0900
commit5c34ab6692b2aa555fde7ce1399f4155b6f0438a (patch)
tree17c22d5b6429dffe846d9b86796f73776ac4155d /plugin
parent390b49653b441c958b82a0f78d9923aef4c1d9a2 (diff)
[vim] Fix terminal buffer cleanup on Vim 8
Close #1172
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 8c3932f7..27b5332e 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -699,9 +699,9 @@ function! s:execute_term(dict, command, temps) abort
if has('nvim')
call termopen(command, fzf)
else
- let t = term_start([&shell, &shellcmdflag, command], {'curwin': fzf.buf, 'exit_cb': function(fzf.on_exit)})
+ let fzf.buf = term_start([&shell, &shellcmdflag, command], {'curwin': 1, 'exit_cb': function(fzf.on_exit)})
if !has('patch-8.0.1261') && !has('nvim') && !s:is_win
- call term_wait(t, 20)
+ call term_wait(fzf.buf, 20)
endif
endif
finally