[vim] Do not expand s:fzf_go

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.
This commit is contained in:
Junegunn Choi 2017-05-22 01:04:04 +09:00
parent e65f14cbed
commit 11300913a4
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -87,7 +87,7 @@ set cpo&vim
function! s:fzf_exec()
if !exists('s:exec')
if executable(s:fzf_go)
let s:exec = s:fzf_expand(s:fzf_go)
let s:exec = s:fzf_go
elseif executable('fzf')
let s:exec = 'fzf'
elseif s:is_win