diff options
author | David Maus <dmaus@ictsoc.de> | 2010-11-01 19:28:11 +0100 |
---|---|---|
committer | David Maus <dmaus@ictsoc.de> | 2010-11-01 19:28:11 +0100 |
commit | 7bef01a90fb7456dd1d8f553ddaaa51ad9d21780 (patch) | |
tree | 48d7b8a0d280be5e39055209e7afb2bb309d6d25 | |
parent | ff9b70d1c1dff93bca8474b824bb12bacb4cb800 (diff) | |
download | org-mode-7bef01a90fb7456dd1d8f553ddaaa51ad9d21780.tar.gz |
Check for heading that ends at end of buffer
* org.el (org-narrow-to-subtree): Check for heading that ends at end
of buffer.
-rw-r--r-- | lisp/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 59caf41..67c4fd3 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7501,7 +7501,7 @@ If yes, remember the marker and the distance to BEG." (narrow-to-region (progn (org-back-to-heading t) (point)) (progn (org-end-of-subtree t t) - (if (org-on-heading-p) (backward-char 1)) + (if (and (org-on-heading-p) (not (eobp))) (backward-char 1)) (point)))))) (eval-when-compile |