branch: elpa/helm
commit e6527edd1d8d7f72801e9fc5b73bceb339aa1e76
Merge: fbea333386 074167a03b
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: GitHub <nore...@github.com>

    Merge pull request #2716 from taquangtrung/master
    
    fix: exception occurring when trimming empty summary string
---
 helm-lib.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helm-lib.el b/helm-lib.el
index 8096a49e6d..05f03973b1 100644
--- a/helm-lib.el
+++ b/helm-lib.el
@@ -2024,7 +2024,7 @@ Directories expansion is not supported."
       (goto-char (point-min))
       (when (re-search-forward "^;;;?\\(.*\\) ---? \\(.*\\)" (pos-eol) t)
         (setq desc (match-string-no-properties 2)))
-      (if (or (null desc) (string= "" desc))
+      (if (or (null desc) (string= "" desc) (string-match "\\`-\\*-" desc))
           "Not documented"
         (car (split-string desc "-\\*-" nil "[ \t\n\r-]+"))))))
 

Reply via email to