From cd54b73e88a918ee39a0d42c26879b64ac387339 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 19 Jan 2013 23:10:33 -0500 Subject: [PATCH] Fix Ruby nREPL connection on Windows I do not understand why tripling quotes escapes them. Closes #41. --- autoload/nrepl/foreplay_connection.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/nrepl/foreplay_connection.vim b/autoload/nrepl/foreplay_connection.vim index e7d9088..d4389e9 100644 --- a/autoload/nrepl/foreplay_connection.vim +++ b/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'