|
From: | Gregory Heytings |
Subject: | bug#60015: 29.0.60; multi-line messages truncated in non-selected minibuffer |
Date: | Thu, 15 Dec 2022 21:52:33 +0000 |
+ (let ((window-lines (window-height minibuf-window)) + (message-lines (length (split-string message "\n")))) + (when (> message-lines window-lines) + (with-selected-window minibuf-window + (enlarge-window (- message-lines window-lines)))))This won't catch the case of a single very long line (which wraps to produce several screen lines).Testing shows that it doesn't handle wrapped lines.
Indeed, but that wasn't part of your problem statement ;-)
[Prev in Thread] | Current Thread | [Next in Thread] |