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
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -135,7 +135,8 @@ selection of all minor-modes, active or not."
(list (or (+org-get-global-property "TITLE")
(file-relative-name (buffer-file-name)))))
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)
" ")