summaryrefslogtreecommitdiff
path: root/lisp/man.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2007-06-04 23:42:10 +0000
committerChong Yidong <cyd@stupidchicken.com>2007-06-04 23:42:10 +0000
commit65e076827adb6c9c371b3a6f3ccddc47460a0dd9 (patch)
tree8c16ed4e7f403f53fb644da39ee610d5d6007ba3 /lisp/man.el
parent05d6ece7a354f2e2ddaee032713c96144f9a29fe (diff)
downloademacs-65e076827adb6c9c371b3a6f3ccddc47460a0dd9.tar.gz
(Man-next-section): Don't consider the last line of the page as being
part of any section.
Diffstat (limited to 'lisp/man.el')
-rw-r--r--lisp/man.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 0484c032e34..e74f9734e51 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1296,7 +1296,9 @@ The following key bindings are currently in effect in the buffer:
(forward-line 1))
(if (re-search-forward Man-heading-regexp (point-max) t n)
(beginning-of-line)
- (goto-char (point-max)))))
+ (goto-char (point-max))
+ ;; The last line doesn't belong to any section.
+ (forward-line -1))))
(defun Man-previous-section (n)
"Move point to Nth previous section (default 1)."