diff --git a/lisp/org-element.el b/lisp/org-element.el index 6810b98df..ba2461a9e 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -4751,7 +4751,8 @@ Providing it allows for quicker computation." :contents-begin element)) (cend (org-element-property :contents-end element))) - (and (>= origin cbeg) + (and cbeg cend ; cbeg is nil for table rules + (>= origin cbeg) (<= origin cend) (progn (goto-char cbeg) (setq end cend))))) (and (eq type 'keyword)