Make 8.3 filename via cmd.exe for Neovim
This commit is contained in:
parent
dda682ad69
commit
a4d4986d18
1 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue