Don't blow up on unrecognized session
This commit is contained in:
parent
fa7a19140b
commit
0b17709b56
@ -200,7 +200,7 @@ endfunction
|
|||||||
|
|
||||||
function! fireplace#nrepl#callback(body, type, fn)
|
function! fireplace#nrepl#callback(body, type, fn)
|
||||||
let response = {'body': a:body, 'type': a:type}
|
let response = {'body': a:body, 'type': a:type}
|
||||||
if has_key(a:body, 'session')
|
if has_key(g:fireplace_nrepl_sessions, get(a:body, 'session'))
|
||||||
let response.session = g:fireplace_nrepl_sessions[a:body.session]
|
let response.session = g:fireplace_nrepl_sessions[a:body.session]
|
||||||
endif
|
endif
|
||||||
call call(a:fn, [response])
|
call call(a:fn, [response])
|
||||||
|
Loading…
Reference in New Issue
Block a user