Browse files

Fix Ruby nREPL connection on Windows

I do not understand why tripling quotes escapes them.

Closes #41.
  • Loading branch information...
1 parent c0bdf9b commit cd54b73e88a918ee39a0d42c26879b64ac387339 @tpope committed Jan 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/nrepl/foreplay_connection.vim
View
2 autoload/nrepl/foreplay_connection.vim
@@ -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'

0 comments on commit cd54b73

Please sign in to comment.