branch: externals/org-remark commit 94ba0ecea0a585b3b13e2b9dce2ba2fdbc8cb85c Author: Noboru Ota <m...@nobiot.com> Commit: Noboru Ota <m...@nobiot.com>
fix(line): When source narrowed, existing line-hls move wrongly --- org-remark.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org-remark.el b/org-remark.el index 18fb9dd5ac..407cea5f0c 100644 --- a/org-remark.el +++ b/org-remark.el @@ -1628,7 +1628,8 @@ Case 2. The overlay points to no buffer (delete-overlay ov)) ;; Before deleting `org-remark-highlights', add a handler per ;; org-remark-type - (org-remark-highlights-housekeep-per-type ov org-remark-type) + (org-with-wide-buffer + (org-remark-highlights-housekeep-per-type ov org-remark-type)) ;; Update `org-remark-highlights' by removing the deleted overlays (unless (overlay-buffer ov) (setq org-remark-highlights (delete ov org-remark-highlights)))))