Remove :repl-env for latest piggieback compatibility.

This commit is contained in:
kul 2015-03-31 20:52:10 +05:30
parent 5866d0017a
commit 0aabcdd798

View File

@ -228,9 +228,9 @@ function! s:repl.piggieback(arg, ...) abort
elseif a:arg =~# '^\d\{1,5}$' elseif a:arg =~# '^\d\{1,5}$'
call connection.eval("(require 'cljs.repl.browser)") call connection.eval("(require 'cljs.repl.browser)")
let port = matchstr(a:arg, '^\d\{1,5}$') let port = matchstr(a:arg, '^\d\{1,5}$')
let arg = ' :repl-env (cljs.repl.browser/repl-env :port '.port.')' let arg = ' (cljs.repl.browser/repl-env :port '.port.')'
else else
let arg = ' :repl-env ' . a:arg let arg = ' ' . a:arg
endif endif
let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')') let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')')