---
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 a16ee0f9b..d5a21cbcb 100644
--- a/lisp/org-fold.el
+++ b/lisp/org-fold.el
@@ -840,7 +840,7 @@ (defun org-fold-show-set-visibility--text-properties
(detail)
(org-with-point-at (car region)
(beginning-of-line)
(let (font-lock-extend-region-functions)
- (font-lock-fontify-region (1- (car region)) (cdr region))))))
+ (font-lock-fontify-region (max (point-min) (1- (car region)))
(cdr region))))))
(when region
(org-fold-region (car region) (cdr region) nil))))
(unless (org-before-first-heading-p)
--
2.35.1
--
Ihor Radchenko,
PhD,
Center for Advancing Materials Performance from the Nanoscale (CAMP-nano)
State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong
University, Xi'an, China
Email: [email protected], [email protected]