diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-05 05:14:09 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-05 05:14:09 -0500 |
| commit | aa3d724c6bdd3a16391ad95040184c118386d329 (patch) | |
| tree | aaa706e89f60eb3dbbe1eb524dcb7921556cdf48 /scripts/coverage-summary.py | |
| parent | 88b7fb502c0317ac29b3c7f3eb3f4c0617c87c02 (diff) | |
| download | org-drill-aa3d724c6bdd3a16391ad95040184c118386d329.tar.gz org-drill-aa3d724c6bdd3a16391ad95040184c118386d329.zip | |
fix: hide-drawers ignores drawers with no :END:
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.
Diffstat (limited to 'scripts/coverage-summary.py')
0 files changed, 0 insertions, 0 deletions
