Set noshellslash only for cmd.exe

Thanks @Haroogan.

Closes #99.
This commit is contained in:
Marco Hinz 2013-11-30 14:33:47 +01:00
parent dcae627181
commit a7c83f6e2e

View File

@ -6,7 +6,11 @@ scriptencoding utf-8
function! sy#util#escape(path) abort
if exists('+shellslash')
let old_ssl = &shellslash
set noshellslash
if fnamemodify(&shell, ':t') == 'cmd.exe'
set noshellslash
else
set shellslash
endif
endif
let path = shellescape(a:path)