org: fix +org/dwim-at-point on subscript/superscript elements

This commit is contained in:
Henrik Lissner 2017-10-05 01:18:03 +02:00
parent 06b14a5722
commit eaa677bd94
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -47,7 +47,7 @@ If on a:
(context (org-element-context))
(type (org-element-type context)))
;; skip over unimportant contexts
(while (and context (memq type '(verbatim code bold italic underline strike-through)))
(while (and context (memq type '(verbatim code bold italic underline strike-through subscript superscript)))
(setq context (org-element-property :parent context)
type (org-element-type context)))
(pcase type