Support new return value of classpath operator

This commit is contained in:
Tim Pope 2014-11-30 00:36:33 -05:00
parent db2e70ee3f
commit 04ce1b64af

View File

@ -40,8 +40,8 @@ function! fireplace#nrepl#for(transport) abort
endif endif
if client.has_op('classpath') if client.has_op('classpath')
let response = client.message({'op': 'classpath'})[0] let response = client.message({'op': 'classpath'})[0]
if type(get(response, 'value')) == type([]) if type(get(response, 'classpath')) == type([])
let client._path = response.value let client._path = response.classpath
endif endif
endif endif
if !has_key(client, '_path') if !has_key(client, '_path')