emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/cider 1094e3d80a: Fix `max-mini-window-lines` not existing


From: ELPA Syncer
Subject: [nongnu] elpa/cider 1094e3d80a: Fix `max-mini-window-lines` not existing in old Emacsen (#3670)
Date: Fri, 17 May 2024 18:59:27 -0400 (EDT)

branch: elpa/cider
commit 1094e3d80ac37dc01e1aac0b6439656e1daf9414
Author: Oleksandr Yakushev <alex@bytopia.org>
Commit: GitHub <noreply@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

[Prev in Thread] Current Thread [Next in Thread]