Require if_pyth on Windows

References #97, #139.
This commit is contained in:
Tim Pope 2014-04-12 22:18:26 -04:00
parent 672d3b5c82
commit 7b19c1b2f6

View File

@ -34,7 +34,7 @@ function! s:shellesc(arg) abort
if a:arg =~ '^[A-Za-z0-9_/.-]\+$' if a:arg =~ '^[A-Za-z0-9_/.-]\+$'
return a:arg return a:arg
elseif &shell =~# 'cmd' elseif &shell =~# 'cmd'
return '"'.substitute(substitute(a:arg, '"', '""""', 'g'), '%', '"%"', 'g').'"' throw 'Python interface not working. See :help python-dynamic'
else else
let escaped = shellescape(a:arg) let escaped = shellescape(a:arg)
if &shell =~# 'sh' && &shell !~# 'csh' if &shell =~# 'sh' && &shell !~# 'csh'