[vim] Keep jump list unaffected when calling term_start

Fix #3415
This commit is contained in:
Junegunn Choi 2023-08-26 19:52:44 +09:00
parent 03df609d77
commit 3a965856a5
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -945,7 +945,7 @@ function! s:execute_term(dict, command, temps) abort
let term_opts.curwin = 1
endif
call s:handle_ambidouble(term_opts)
let fzf.buf = term_start([&shell, &shellcmdflag, command], term_opts)
keepjumps let fzf.buf = term_start([&shell, &shellcmdflag, command], term_opts)
if is_popup && exists('#TerminalWinOpen')
doautocmd <nomodeline> TerminalWinOpen
endif