Make the previous two commits actually work

This commit is contained in:
Tim Pope 2012-12-15 15:36:50 -05:00
parent 1aa3a32fbe
commit 53c8e0408b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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