branch: externals/org commit 3fba34900e55e10be984c6607ac15430ccdb26a8 Author: Ihor Radchenko <yanta...@gmail.com> Commit: Ihor Radchenko <yanta...@gmail.com>
Fix org-fold--hide-drawers--overlays --- lisp/org-fold.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-fold.el b/lisp/org-fold.el index e48a528bfb..a16ee0f9bd 100644 --- a/lisp/org-fold.el +++ b/lisp/org-fold.el @@ -714,7 +714,7 @@ Return a non-nil value when toggling is successful." "Hide all drawers between BEGIN and END." (save-excursion (goto-char begin) - (while (re-search-forward org-drawer-regexp end t) + (while (and (< (point) end) (re-search-forward org-drawer-regexp end t)) (let* ((pair (get-char-property-and-overlay (line-beginning-position) 'invisible)) (o (cdr-safe pair)))