Skip to content

Commit

Permalink
Fix for closures on stream done
Browse files Browse the repository at this point in the history
  • Loading branch information
s-kostyaev committed Jul 5, 2024
1 parent 1392f12 commit 92fa390
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ellama.el
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,8 @@ failure (with BUFFER current).
(with-current-buffer buffer
(accept-change-group ellama--change-group)
(spinner-stop)
(if (listp donecb)
(if (and (listp donecb)
(functionp (car donecb)))
(mapc (lambda (fn) (funcall fn text))
donecb)
(funcall donecb text))
Expand Down

0 comments on commit 92fa390

Please sign in to comment.