소스 검색

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.
Bastien Guerry 12 년 전
부모
커밋
b70ec7a29c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lisp/org.el

+ 1 - 1
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)