Skip to content

Commit

Permalink
Make 8.3 filename via cmd.exe for Neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
janlazo committed Aug 22, 2017
1 parent dda682a commit a4d4986
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions autoload/fzf/vim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ let s:bin = {
\ 'tags': s:bin_dir.'tags.pl' }
let s:TYPE = {'dict': type({}), 'funcref': type(function('call')), 'string': type(''), 'list': type([])}
if s:is_win
if &shellslash
let s:bin.preview = fnamemodify(s:bin.preview, ':8')
if has('nvim')
let s:bin.preview = split(system('for %A in ("'.s:bin.preview.'") do echo %~sA'), "\n")[1]
else
set shellslash
let s:bin.preview = fnamemodify(s:bin.preview, ':8')
set noshellslash
endif
let s:bin.preview = escape(s:bin.preview, '\')
endif

function! s:merge_opts(dict, eopts)
Expand Down

0 comments on commit a4d4986

Please sign in to comment.