parent
6f93e99ede
commit
fd8d623b7b
@ -129,8 +129,8 @@ function! s:nrepl_process(payload) dict abort
|
||||
if index(combined[key], response[key]) < 0
|
||||
call extend(combined[key], [response[key]])
|
||||
endif
|
||||
elseif key ==# 'out' && response.out =~# '^.*(.*:\d\+)\t.*)$'
|
||||
let combined.stacktrace = split(response.out, "\t")
|
||||
elseif key ==# 'out' && response.out =~# '^\b.*(.*)$'
|
||||
let combined.stacktrace = split(response.out, "\b")
|
||||
elseif type(response[key]) == type('')
|
||||
let combined[key] = get(combined, key, '') . response[key]
|
||||
else
|
||||
@ -146,7 +146,7 @@ endfunction
|
||||
|
||||
function! s:nrepl_eval(expr, ...) dict abort
|
||||
let payload = {"op": "eval"}
|
||||
let payload.code = '(try (eval ''(do '.a:expr."\n".')) (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 (interleave (repeat "\b") (map str (.getStackTrace e))))) (throw e)))'
|
||||
let options = a:0 ? a:1 : {}
|
||||
if has_key(options, 'ns')
|
||||
let payload.ns = options.ns
|
||||
|
Loading…
Reference in New Issue
Block a user