Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Ruby nREPL connection on Windows

I do not understand why tripling quotes escapes them.

Closes #41.
  • Loading branch information...
commit cd54b73e88a918ee39a0d42c26879b64ac387339 1 parent c0bdf9b
Tim Pope authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  autoload/nrepl/foreplay_connection.vim
2  autoload/nrepl/foreplay_connection.vim
View
@@ -69,7 +69,7 @@ function! s:shellesc(arg) abort
if a:arg =~ '^[A-Za-z0-9_/.-]\+$'
return a:arg
elseif &shell =~# 'cmd'
- return '"'.substitute(substitute(a:arg, '"', '""', 'g'), '%', '"%"', 'g').'"'
+ return '"'.substitute(substitute(a:arg, '"', '""""', 'g'), '%', '"%"', 'g').'"'
else
let escaped = shellescape(a:arg)
if &shell =~# 'sh' && &shell !~# 'csh'
Please sign in to comment.
Something went wrong with that request. Please try again.