Skip to content

Commit 4e96e93

Browse files
arichiardibbatsov
authored andcommitted
Fix a bug causing read to output for expression
1 parent 6bd986d commit 4e96e93

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## master (unreleased)
44

5+
### Bugs Fixed
6+
7+
* [#77](https://github.com/clojure-emacs/inf-clojure/pull/77): Fix request "Eval expression:" if arglists return is `nil`.
8+
59
## 2.0.0 (2017-05-01)
610

711
### New Features

inf-clojure.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ the results buffer. It cuts out the output from
978978
See variable `inf-clojure-arglists-form'."
979979
(let* ((arglists-snippet (format (inf-clojure-arglists-form) fn))
980980
(arglists-result (inf-clojure-results-from-process (inf-clojure-proc) arglists-snippet))
981-
(arglists-data (read arglists-result)))
981+
(arglists-data (when arglists-result (read arglists-result))))
982982
(cond
983983
((null arglists-data) nil)
984984
((stringp arglists-data) arglists-data)

0 commit comments

Comments
 (0)