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

[vim] Fix terminal buffer cleanup on Vim 8

Close #1172
parent 390b4965
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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