Commit 97d26a97 authored by Richard M. Stallman's avatar Richard M. Stallman

(momentary-string-display): Fix backward test

for whether end of message is off the screen.
parent 5d6a85e0
......@@ -809,7 +809,7 @@ If MESSAGE is nil, instructions to type EXIT-CHAR are displayed there."
(insert-before-markers string)
(setq insert-end (point))
;; If the message end is off screen, recenter now.
(if (> (window-end) insert-end)
(if (< (window-end) insert-end)
(recenter (/ (window-height) 2)))
;; If that pushed message start off the screen,
;; scroll to start it at the top of the screen.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment