From c7f2a2ab6bbd4d4cb39310b07da804b1f7ed54ba Mon Sep 17 00:00:00 2001 From: "Raymond W. Ko" Date: Tue, 8 Jan 2013 22:38:50 -0500 Subject: [PATCH] Fix eval with trailing comment in nREPL adapter --- 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 604aaed..ea2015a 100644 --- a/autoload/nrepl/foreplay_connection.vim +++ b/autoload/nrepl/foreplay_connection.vim @@ -146,7 +146,7 @@ endfunction function! s:nrepl_eval(expr, ...) dict abort let payload = {"op": "eval"} - let payload.code = '(try (eval ''(do '.a:expr.')) (catch Exception e (print (apply str (interpose "\t" (map str (.getStackTrace e))))) (throw e)))' + let payload.code = '(try (eval ''(do '.a:expr."\n".')) (catch Exception e (print (apply str (interpose "\t" (map str (.getStackTrace e))))) (throw e)))' let options = a:0 ? a:1 : {} if has_key(options, 'ns') let payload.ns = options.ns