Fix #3578: wrong-type-arg error on empty org heading

Due to non-string in list while iterating over org heading breadcrumbs.

Closes #3579
This commit is contained in:
Henrik Lissner 2020-07-17 17:19:36 -04:00
parent 523e945a3a
commit 2261bd5819
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -520,7 +520,7 @@ eldoc string."
(funcall orig-fn
(cl-loop for part in path
;; Remove full link syntax
for fixedpart = (replace-regexp-in-string org-link-any-re "\\4" part)
for fixedpart = (replace-regexp-in-string org-link-any-re "\\4" (or part ""))
for n from 0
for face = (nth (% n org-n-level-faces) org-level-faces)
collect