diff options
| -rw-r--r-- | lisp/textmodes/ooutline.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/textmodes/ooutline.el b/lisp/textmodes/ooutline.el index c3f05af00bb..207bffcdf74 100644 --- a/lisp/textmodes/ooutline.el +++ b/lisp/textmodes/ooutline.el | |||
| @@ -372,7 +372,9 @@ Default is enough to cause the following heading to appear." | |||
| 372 | (beginning-of-line) | 372 | (beginning-of-line) |
| 373 | (let ((start-level (funcall outline-level))) | 373 | (let ((start-level (funcall outline-level))) |
| 374 | (outline-next-heading) | 374 | (outline-next-heading) |
| 375 | (max 1 (- (funcall outline-level) start-level)))))) | 375 | (if (eobp) |
| 376 | 1 | ||
| 377 | (max 1 (- (funcall outline-level) start-level))))))) | ||
| 376 | (save-excursion | 378 | (save-excursion |
| 377 | (save-restriction | 379 | (save-restriction |
| 378 | (beginning-of-line) | 380 | (beginning-of-line) |