aboutsummaryrefslogtreecommitdiff
path: root/test-from-git
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-05 05:14:09 -0500
committerCraig Jennings <c@cjennings.net>2026-05-05 05:14:09 -0500
commitaa3d724c6bdd3a16391ad95040184c118386d329 (patch)
treeaaa706e89f60eb3dbbe1eb524dcb7921556cdf48 /test-from-git
parent88b7fb502c0317ac29b3c7f3eb3f4c0617c87c02 (diff)
downloadorg-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 'test-from-git')
0 files changed, 0 insertions, 0 deletions