Skip to content

Commit

Permalink
Fix max-mini-window-lines not existing in old Emacsen (#3670)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-yakushev authored May 17, 2024
1 parent 6e89ad2 commit 1094e3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cider-overlays.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 1094e3d

Please sign in to comment.