org-dwim-char: simple insert at empty line

This commit is contained in:
MitchMarq42 2023-01-03 14:57:00 -09:00
parent 04722d635b
commit 21de4cf404

View File

@ -132,7 +132,7 @@ Otherwise, insert two of CHAR and put point between them like `electric-pair'."
(insert char))))))
((eq char (char-after))
(right-char))
((or (string-match-p (rx bol (or "#" "*"))
((or (string-match-p (rx bol (or "#" "*" ""))
(thing-at-point 'line 'no-properties))
(org-in-block-p org-protecting-blocks)
(org-at-property-p))