1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-13 09:32:47 +00:00

Fix off-by-one error in eldoc--handle-docs

* lisp/emacs-lisp/eldoc.el (eldoc--handle-docs): We have one extra
line to use if we don't show the truncation message (bug#43543).
This commit is contained in:
Lars Ingebrigtsen 2020-09-22 16:20:05 +02:00
parent 096f5956be
commit 73f77558cc

View File

@ -510,6 +510,10 @@ Honor most of `eldoc-echo-area-use-multiline-p'."
(> (+ (length single-doc) (length single-doc-sym) 2) width))
single-doc)
((> available 1)
;; The message takes one extra line, so if we don't
;; display that, we have one extra line to use.
(unless eldoc-display-truncation-message
(setq available (1+ available)))
(with-current-buffer (eldoc-doc-buffer)
(cl-loop
initially