From 1094e3d80ac37dc01e1aac0b6439656e1daf9414 Mon Sep 17 00:00:00 2001 From: Oleksandr Yakushev Date: Sat, 18 May 2024 00:14:11 +0300 Subject: [PATCH] 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 733258166..81c36e29e 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)))