summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-09-09 00:02:37 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-09-09 00:02:37 +0900
commit9e96073128186a1e8c13fbb635d027c545a1d7f6 (patch)
tree583d25262d8642170cc30b6bbaf8f3ef192f84ad /plugin
parent0db65c22d369026a0a9af079bfa7e8110e850ec9 (diff)
[vim] Expose fzf#exec() function
Diffstat (limited to 'plugin')
-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