aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero <[email protected]>2004-05-06 00:43:33 +0000
committerJuanma Barranquero <[email protected]>2004-05-06 00:43:33 +0000
commit1d4c12573891112e58eb74035bc1f3fe213e0ca2 (patch)
tree3651942a2dd96ddbfdd6e5e9d38dc6a9cbf77797
parent948d29955e019dfa516b07e3458582c827b0577d (diff)
(electric-help-command-loop): Check whether the last character is visible,
not (point-max).
-rw-r--r--lisp/ehelp.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ehelp.el b/lisp/ehelp.el
index 641faca557..e80c129d3e 100644
--- a/lisp/ehelp.el
+++ b/lisp/ehelp.el
@@ -215,7 +215,7 @@ BUFFER is put into `default-major-mode' (or `fundamental-mode') when we exit."
;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 ")