From 0c3ffbbb256939e9f2830df73f44ca4f3476ee39 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 3 May 2020 16:38:44 -0400 Subject: [PATCH] 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. --- core/autoload/help.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/autoload/help.el b/core/autoload/help.el index 374beb83e..060731b18 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -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) " ")