aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-drill-hide-drawers-missing-end.el
Commit message (Collapse)AuthorAgeFilesLines
* fix: hide-drawers ignores drawers with no :END:Craig Jennings2026-05-051-0/+66
drawer-end was captured as (save-excursion (re-search-forward ':END:' end t) (point)) which always returns a number — (point) is always defined. The subsequent (when drawer-end ...) guard was dead, so a malformed drawer (typo in :END:, mid-edit truncation) ended up with a junk overlay covering whatever range point happened to land in. Captured the search result itself and gate on it. Malformed drawers are now skipped silently; well-formed drawers still get their normal overlay.