branch: externals/org-modern
commit fcd4368476a9c4eadfac4d6f51159d90a15de15a
Author: JD Smith <93749+jdtsm...@users.noreply.github.com>
Commit: JD Smith <93749+jdtsm...@users.noreply.github.com>

    after-change: ensure beg/end fully span lines
---
 org-modern-indent.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/org-modern-indent.el b/org-modern-indent.el
index a294c5b469..62a838ce16 100644
--- a/org-modern-indent.el
+++ b/org-modern-indent.el
@@ -295,9 +295,9 @@ To be added after `org-indent-refresh-maybe' on
        (org-indent-add-properties beg end)))
     ;; If we had a level change, extend down to the next heading
     (when omi/-level-change-end (setq end (max end omi/-level-change-end)))
-    (remove-text-properties (omi/-lbp beg) (omi/-lbp end 2) '(omi/display nil))
-    (omi/-walk-blocks
-     beg end
+    (setq beg (omi/-lbp beg) end (omi/-lbp end 2))
+    (remove-text-properties beg end '(omi/display nil))
+    (omi/-walk-blocks beg end
      (lambda (bl-beg bl-end)
        (let ((beg0 bl-beg) (end0 bl-end)
             (pf (get-text-property bl-beg 'line-prefix))

Reply via email to