Explorar o código

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

Ihor Radchenko %!s(int64=3) %!d(string=hai) anos
pai
achega
3fba34900e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/org-fold.el

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