1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-21 06:11:50 -07:00

Fix backward motion in Info manuals under 'scroll-conservatively'

* lisp/info.el (Info-find-node-2): Don't skip the header or
breadcrumbs line when 'scroll-conservatively' is set to a value
that could leave the beginning of the node outside of the window.
(Bug#80553)
This commit is contained in:
Eli Zaretskii 2026-03-14 13:11:11 +02:00
parent 17aa3a7e13
commit 696a4e03bf

View file

@ -1343,7 +1343,13 @@ is non-nil)."
(Info-select-node)
(goto-char (point-min))
(forward-line 1) ; skip header line
;; Skip the header line or breadcrumbs, unless
;; 'scroll-conservatively' is set to a large enough value
;; which could cause us scroll the display to leave that
;; line outside of the window. The shortest node is 5
;; lines, thus 6 is the threshold value.
(if (< scroll-conservatively 6)
(forward-line 1))
;; (when (> Info-breadcrumbs-depth 0) ; skip breadcrumbs line
;; (forward-line 1))