# HG changeset patch # User Richard M. Stallman # Date 760034472 0 # Node ID 6f772d7f128965285fe200dbb56acfb25c2e1860 # Parent fc9ed3368ecc88cb2c642cfe1b2ab22355918d8d (show-children): Don't call outline-level at eob. diff -r fc9ed3368ecc -r 6f772d7f1289 lisp/textmodes/ooutline.el --- a/lisp/textmodes/ooutline.el Mon Jan 31 16:16:05 1994 +0000 +++ b/lisp/textmodes/ooutline.el Mon Jan 31 16:41:12 1994 +0000 @@ -372,7 +372,9 @@ (beginning-of-line) (let ((start-level (funcall outline-level))) (outline-next-heading) - (max 1 (- (funcall outline-level) start-level)))))) + (if (eobp) + 1 + (max 1 (- (funcall outline-level) start-level))))))) (save-excursion (save-restriction (beginning-of-line)