Skip to content

Commit ef87c71

Browse files
vemvbbatsov
authored andcommitted
Honor cider-result-overlay-position
1 parent 1989a72 commit ef87c71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cider-eval.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,8 @@ Optional argument DONE-HANDLER lambda will be run once load is complete."
958958
;; 2.- Calculate the overlay position, which is the point (per the previous jump),
959959
;; and then end-of-line (for ensuring the overlay will be rendered properly):
960960
(end (save-excursion
961-
(end-of-line)
961+
(when (equal cider-result-overlay-position 'at-eol)
962+
(end-of-line))
962963
(point))))
963964
(cider--maybe-display-error-as-overlay phase err end))))
964965
(lambda (buffer)

0 commit comments

Comments
 (0)