Make the previous two commits actually work
This commit is contained in:
parent
1aa3a32fbe
commit
53c8e0408b
@ -100,7 +100,7 @@ function! nrepl#foreplay_connection#open(arg) abort
|
||||
let session = client.process({'op': 'clone'})['new-session']
|
||||
let response = client.process({'op': 'eval', 'session': session, 'code':
|
||||
\ '(do (println "success") (symbol (str (System/getProperty "path.separator") (System/getProperty "java.class.path"))))'})
|
||||
let client._path = response.value
|
||||
let client._path = response.value[-1]
|
||||
if has_key(response, 'out')
|
||||
let client.session = session
|
||||
endif
|
||||
|
@ -664,7 +664,7 @@ function! foreplay#source(symbol) abort
|
||||
\ ' (if (= "jar" (.getProtocol url))' .
|
||||
\ ' (str "zip" (.replaceFirst (.getFile url) "!/" "::"))' .
|
||||
\ ' (.getFile url)))))))'
|
||||
let result = get(split(c.eval(cmd, foreplay#ns()), "\n"), 0, '')
|
||||
let result = get(split(c.eval(cmd, foreplay#ns()).value, "\n"), 0, '')
|
||||
return result ==# 'nil' ? '' : result
|
||||
endfunction
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user