Skip to content

Commit

Permalink
Fix a bug causing read to output for expression
Browse files Browse the repository at this point in the history
  • Loading branch information
arichiardi authored and bbatsov committed May 9, 2017
1 parent 6bd986d commit 4e96e93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

## master (unreleased)

### Bugs Fixed

* [#77](https://github.com/clojure-emacs/inf-clojure/pull/77): Fix request "Eval expression:" if arglists return is `nil`.

## 2.0.0 (2017-05-01)

### New Features
Expand Down
2 changes: 1 addition & 1 deletion inf-clojure.el
Expand Up @@ -978,7 +978,7 @@ the results buffer. It cuts out the output from
See variable `inf-clojure-arglists-form'."
(let* ((arglists-snippet (format (inf-clojure-arglists-form) fn))
(arglists-result (inf-clojure-results-from-process (inf-clojure-proc) arglists-snippet))
(arglists-data (read arglists-result)))
(arglists-data (when arglists-result (read arglists-result))))
(cond
((null arglists-data) nil)
((stringp arglists-data) arglists-data)
Expand Down

0 comments on commit 4e96e93

Please sign in to comment.