Fix quantifier in Org headline insert inhibitor hook

Make sure at least one asteriks is present to not accidentally prevent input on other lines.
This commit is contained in:
Daniel Borchmann 2025-04-23 20:41:54 +02:00
parent 837b7fc106
commit b4b0bab9c2
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

View File

@ -1257,7 +1257,7 @@ ignore all keys pressed at the beginning of a headline."
(ignore keys)
(when (and (or (looking-at "\\*")
(looking-at " "))
(looking-back "^\\** ?" nil))
(looking-back "^\\*+ ?" nil))
#'(lambda ()
(user-error "No direct input allowed in headline"))))