branch: elpa/cider
commit 1094e3d80ac37dc01e1aac0b6439656e1daf9414
Author: Oleksandr Yakushev <a...@bytopia.org>
Commit: GitHub <nore...@github.com>

    Fix `max-mini-window-lines` not existing in old Emacsen (#3670)
---
 cider-overlays.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cider-overlays.el b/cider-overlays.el
index 7332581662..81c36e29ef 100644
--- a/cider-overlays.el
+++ b/cider-overlays.el
@@ -318,7 +318,8 @@ focused."
                            :duration cider-eval-result-duration
                            :prepend-face (or overlay-face 
'cider-result-overlay-face))))
          (msg (format "%s%s" cider-eval-result-prefix value))
-         (max-msg-length (* (floor (max-mini-window-lines)) (frame-width)))
+         (max-msg-length (* (floor (* (frame-height) max-mini-window-height))
+                            (frame-width)))
          (msg (if (> (string-width msg) max-msg-length)
                   (format "%s..." (substring msg 0 (- max-msg-length 3)))
                 msg)))

Reply via email to