Projects STRLCPY fzf Commits 728f7352
🤬
  • [vim] Fix version check on windows/powershell (#2894)

    - Replace fzf#shellescape with shellescape
    - Prepend command with '&' in powershell to deal with quoted exe
  • Loading...
  • Carl Kamholtz committed with GitHub 2 years ago
    728f7352
    1 parent ecc418ba
  • ■ ■ ■ ■
    plugin/fzf.vim
    skipped 163 lines
    164 164   if has_key(s:versions, a:bin)
    165 165   return s:versions[a:bin]
    166 166   end
    167  - let command = fzf#shellescape(a:bin) . ' --version --no-height'
     167 + let command = (&shell == 'powershell' ? '&' : '') . shellescape(a:bin) . ' --version --no-height'
    168 168   let output = systemlist(command)
    169 169   if v:shell_error || empty(output)
    170 170   return ''
    skipped 890 lines
Please wait...
Page is in error, reload to recover