summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-04-03 12:43:42 +0200
committerBastien Guerry <bzg@altern.org>2013-04-03 12:43:42 +0200
commitb70ec7a29c40ca80afb31f718f1820d0ac954b69 (patch)
tree09d560396da7dce1336db7075457c31f0ab8be98
parent6f78b660f87ab8719ed22f61d2f2633316c159ed (diff)
downloadorg-mode-b70ec7a29c40ca80afb31f718f1820d0ac954b69.tar.gz
org.el (org-cycle-internal-local): Fix invalid search bound
* org.el (org-cycle-internal-local): Fix invalid search bound when `org-cycle-include-plain-lists' is set to 'integrate. Thanks to James Harkins for reporting this.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 04ce386..f2c4d1b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6702,7 +6702,7 @@ in special contexts.
(end (org-list-get-bottom-point struct)))
(mapc (lambda (e) (org-list-set-item-visibility e struct 'folded))
(org-list-get-all-items (point) struct prevs))
- (goto-char end))))))
+ (goto-char (if (< end eos) end eos)))))))
(message "CHILDREN")
(save-excursion
(goto-char eos)