Clojure layer: fix regression for pinned cider

This commit is contained in:
Andre Ramos 2018-07-12 17:10:21 +02:00 committed by Codruț Constantin Gușoi
parent 4f70a9abcc
commit f3cbf89b45

View file

@ -33,7 +33,7 @@
"Insert FORM in the REPL buffer and eval it."
(while (string-match "\\`[ \t\n\r]+\\|[ \t\n\r]+\\'" form)
(setq form (replace-match "" t t form)))
(with-current-buffer (cider-current-repl)
(with-current-buffer (cider-current-connection)
(let ((pt-max (point-max)))
(goto-char pt-max)
(insert form)