Fix wrong-type-arg arrayp error on doom/help search commands

The org crawler assumed that no headings were empty, which led to errors
when they were.
This commit is contained in:
Henrik Lissner
2020-05-03 16:38:44 -04:00
parent 87fe822515
commit 0c3ffbbb25

View File

@ -135,7 +135,8 @@ selection of all minor-modes, active or not."
(list (or (+org-get-global-property "TITLE") (list (or (+org-get-global-property "TITLE")
(file-relative-name (buffer-file-name))))) (file-relative-name (buffer-file-name)))))
path path
(list (replace-regexp-in-string org-link-any-re "\\4" text))) (when text
(list (replace-regexp-in-string org-link-any-re "\\4" text))))
" > ") " > ")
tags) tags)
" ") " ")