Fix org-fold--hide-drawers--overlays

This commit is contained in:
Ihor Radchenko 2022-01-16 16:09:47 +08:00
parent f813f10818
commit 3fba34900e
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 1 deletions

View File

@ -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)))