Fix gilardi scenario

This commit is contained in:
Tim Pope 2013-01-07 18:58:01 -05:00
parent be964782b8
commit 6c2e33f715
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ endfunction
function! s:nrepl_eval(expr, ...) dict abort
let payload = {"op": "eval"}
let payload.code = '(try '.a:expr.' (catch Exception e (print (apply str (interpose "\t" (map str (.getStackTrace e))))) (throw e)))'
let payload.code = '(try (eval ''(do '.a:expr.')) (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