Fix gilardi scenario
This commit is contained in:
parent
be964782b8
commit
6c2e33f715
@ -146,7 +146,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:nrepl_eval(expr, ...) dict abort
|
function! s:nrepl_eval(expr, ...) dict abort
|
||||||
let payload = {"op": "eval"}
|
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 : {}
|
let options = a:0 ? a:1 : {}
|
||||||
if has_key(options, 'ns')
|
if has_key(options, 'ns')
|
||||||
let payload.ns = options.ns
|
let payload.ns = options.ns
|
||||||
|
Loading…
Reference in New Issue
Block a user