changeset 55379:a5a7f792d532

(electric-help-command-loop): Check whether the last character is visible, not (point-max).
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 06 May 2004 00:43:33 +0000
parents f406ef28e71a
children 2f8b73100987
files lisp/ehelp.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ehelp.el	Thu May 06 00:10:15 2004 +0000
+++ b/lisp/ehelp.el	Thu May 06 00:43:33 2004 +0000
@@ -215,7 +215,7 @@
 	              ;beginning-of-buffer - otherwise pos-visible-in-window-p
 	              ;will yield a wrong result.
 	  (let ((min (pos-visible-in-window-p (point-min)))
-		(max (pos-visible-in-window-p (point-max))))
+		(max (pos-visible-in-window-p (1- (point-max)))))
 	    (cond (isearch-mode 'noprompt)
 		  ((and min max)
 		   (cond (standard "Press q to exit, r to retain ")