Skip to content

Commit 1094e3d

Browse files
Fix max-mini-window-lines not existing in old Emacsen (#3670)
1 parent 6e89ad2 commit 1094e3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cider-overlays.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ focused."
318318
:duration cider-eval-result-duration
319319
:prepend-face (or overlay-face 'cider-result-overlay-face))))
320320
(msg (format "%s%s" cider-eval-result-prefix value))
321-
(max-msg-length (* (floor (max-mini-window-lines)) (frame-width)))
321+
(max-msg-length (* (floor (* (frame-height) max-mini-window-height))
322+
(frame-width)))
322323
(msg (if (> (string-width msg) max-msg-length)
323324
(format "%s..." (substring msg 0 (- max-msg-length 3)))
324325
msg)))

0 commit comments

Comments
 (0)