Fix wrong search region for inserting active filter display
This commit is contained in:
parent
a4823651a1
commit
b67a920780
@ -123,7 +123,7 @@ Add this function to `org-agenda-finalize-hook' to enable this."
|
|||||||
;; First delete any present active filter display, as it might be obsolete.
|
;; First delete any present active filter display, as it might be obsolete.
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(when-let ((pos (text-property-any
|
(when-let ((pos (text-property-any
|
||||||
(point) (point-max) 'db/active-filter-display t)))
|
(point-min) (point-max) 'db/active-filter-display t)))
|
||||||
(goto-char pos)
|
(goto-char pos)
|
||||||
(kill-line)))
|
(kill-line)))
|
||||||
|
|
||||||
@ -131,7 +131,7 @@ Add this function to `org-agenda-finalize-hook' to enable this."
|
|||||||
(when (org-agenda-filter-any)
|
(when (org-agenda-filter-any)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(when-let ((pos (text-property-any
|
(when-let ((pos (text-property-any
|
||||||
(point) (point-max) 'org-agenda-structural-header t)))
|
(point-min) (point-max) 'org-agenda-structural-header t)))
|
||||||
(goto-char pos)
|
(goto-char pos)
|
||||||
(end-of-line)
|
(end-of-line)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user