From 0a80e43f9027ec64213d602dbb0b22d65a072ca8 Mon Sep 17 00:00:00 2001 From: ykhan21 <51864191+ykhan21@users.noreply.github.com> Date: Sat, 25 May 2024 19:21:13 -0500 Subject: [PATCH] Fix environment variable reference (#1546) --- autoload/fzf/vim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index edbfeff..67945c3 100755 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -53,7 +53,7 @@ function! s:bash() let custom_bash = s:conf('preview_bash', '') let git_bash = 'C:\Program Files\Git\bin\bash.exe' - let scoop_git_bash = exists('$GIT_INSTALL_ROOT') ? '$GIT_INSTALL_ROOT' . '\bin\bash.exe' : '' + let scoop_git_bash = exists('$GIT_INSTALL_ROOT') ? $GIT_INSTALL_ROOT . '\bin\bash.exe' : '' let candidates = filter(s:is_win ? [custom_bash, git_bash, scoop_git_bash, 'bash'] : [custom_bash, 'bash'], 'len(v:val)') let found = filter(map(copy(candidates), 'exepath(v:val)'), 'len(v:val)')