summaryrefslogtreecommitdiff
path: root/plugin/fzf.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/fzf.vim')
-rw-r--r--plugin/fzf.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 2594bc41..2e12739e 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -145,7 +145,7 @@ function! fzf#install()
endif
endfunction
-function! s:fzf_exec()
+function! fzf#exec()
if !exists('s:exec')
if executable(s:fzf_go)
let s:exec = s:fzf_go
@@ -154,13 +154,13 @@ function! s:fzf_exec()
elseif input('fzf executable not found. Download binary? (y/n) ') =~? '^y'
redraw
call fzf#install()
- return s:fzf_exec()
+ return fzf#exec()
else
redraw
throw 'fzf executable not found'
endif
endif
- return fzf#shellescape(s:exec)
+ return s:exec
endfunction
function! s:tmux_enabled()
@@ -376,7 +376,7 @@ try
let temps = { 'result': s:fzf_tempname() }
let optstr = s:evaluate_opts(get(dict, 'options', ''))
try
- let fzf_exec = s:fzf_exec()
+ let fzf_exec = fzf#shellescape(fzf#exec())
catch
throw v:exception
endtry