Skip to content
Myr

[vim] Do not expand s:fzf_go

Before adoption: this commit came in with the history the project adopted, so no landing records it.

expand() may return an empty string depending on the value of &wildignore. Since expand('<sfile>') always returns an absolute path, we can remove expand() call here. Close #917.

authored by Junegunn Choi · committed by Junegunn Choi · parent e65f14c · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
85 unmodified lines
8687function! s:fzf_exec()88 if !exists('s:exec')89 if executable(s:fzf_go)90 let s:exec = s:fzf_expand(s:fzf_go)90 let s:exec = s:fzf_go91 elseif executable('fzf')92 let s:exec = 'fzf'93 elseif s:is_win94 call s:warn('fzf executable not found.')
665 unmodified lines