summaryrefslogtreecommitdiff
path: root/plugin/fzf.vim
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-04-11 23:47:46 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-04-11 23:47:46 +0900
commit8385a55bda0e1eb8273fc0598010a9f0fb6d1710 (patch)
treea00f888d564ca78a3dcbe4d60a9c0d1a14077afb /plugin/fzf.vim
parent8406cedf2d8755729636bf788037b916c52483f4 (diff)
downloadfzf-8385a55bda0e1eb8273fc0598010a9f0fb6d1710.tar.gz
[vim] s:pushd after s:split
It is possible that the user has an autocmd that changes the current directory.
Diffstat (limited to 'plugin/fzf.vim')
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
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)