[vim] s:pushd after s:split

It is possible that the user has an autocmd that changes the current
directory.
This commit is contained in:
Junegunn Choi 2015-04-11 23:47:46 +09:00
parent 8406cedf2d
commit 8385a55bda

View File

@ -254,8 +254,8 @@ function! s:split(dict)
endfunction
function! s:execute_term(dict, command, temps)
call s:pushd(a:dict)
call s:split(a:dict)
call s:pushd(a:dict)
let fzf = { 'buf': bufnr('%'), 'dict': a:dict, 'temps': a:temps }
function! fzf.on_exit(id, code)