From 8385a55bda0e1eb8273fc0598010a9f0fb6d1710 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 11 Apr 2015 23:47:46 +0900 Subject: [PATCH] [vim] s:pushd after s:split It is possible that the user has an autocmd that changes the current directory. --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index fc42bb0d..2066d708 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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)