diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-04-14 10:35:51 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-04-14 10:35:51 +0900 |
commit | 51a19a280416577a2175a7b778a7ab57a0601dd6 (patch) | |
tree | 6687f757aa799be17d427dbf2d09c4b890559d23 /plugin/fzf.vim | |
parent | a7cb1a78df347a741232adf962b91a6c37bdd35c (diff) |
[vim] Remove unnecessary pushd/popd in :FZF
It is already handled by its caller.
Diffstat (limited to 'plugin/fzf.vim')
-rw-r--r-- | plugin/fzf.vim | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 135a3a24..00f0e19a 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -320,14 +320,9 @@ function! s:cmd_callback(lines) abort elseif key == 'ctrl-v' | let cmd = 'vsplit' else | let cmd = 'e' endif - call s:pushd(s:opts) - try - for item in a:lines - execute cmd s:escape(item) - endfor - finally - call s:popd(s:opts) - endtry + for item in a:lines + execute cmd s:escape(item) + endfor endfunction function! s:cmd(bang, ...) abort @@ -346,7 +341,6 @@ function! s:cmd(bang, ...) abort if s:legacy call fzf#run(extend({ 'options': join(args), 'sink': 'e' }, opts)) else - let s:opts = opts call fzf#run(extend({ 'options': join(args), 'sink*': function('<sid>cmd_callback') }, opts)) endif endfunction |