mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-21 07:23:49 -07:00
[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:
@@ -87,7 +87,7 @@ set cpo&vim
|
|||||||
function! s:fzf_exec()
|
function! s:fzf_exec()
|
||||||
if !exists('s:exec')
|
if !exists('s:exec')
|
||||||
if executable(s:fzf_go)
|
if executable(s:fzf_go)
|
||||||
let s:exec = s:fzf_expand(s:fzf_go)
|
let s:exec = s:fzf_go
|
||||||
elseif executable('fzf')
|
elseif executable('fzf')
|
||||||
let s:exec = 'fzf'
|
let s:exec = 'fzf'
|
||||||
elseif s:is_win
|
elseif s:is_win
|
||||||
|
Reference in New Issue
Block a user