Skip to content

Commit

Permalink
Honor cider-result-overlay-position
Browse files Browse the repository at this point in the history
  • Loading branch information
vemv authored and bbatsov committed Nov 6, 2023
1 parent 1989a72 commit ef87c71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cider-eval.el
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,8 @@ Optional argument DONE-HANDLER lambda will be run once load is complete."
;; 2.- Calculate the overlay position, which is the point (per the previous jump),
;; and then end-of-line (for ensuring the overlay will be rendered properly):
(end (save-excursion
(end-of-line)
(when (equal cider-result-overlay-position 'at-eol)
(end-of-line))
(point))))
(cider--maybe-display-error-as-overlay phase err end))))
(lambda (buffer)
Expand Down

0 comments on commit ef87c71

Please sign in to comment.