Skip to content

Commit

Permalink
* helm-plugin.el: Fix header-line attr, the plugin shouldn't return nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryvolpiatto committed Aug 26, 2014
1 parent bac21d6 commit 4b8567d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helm-plugin.el
Expand Up @@ -233,8 +233,9 @@
;;
;; Add help about persistent action in `helm-buffer' header.
(defun helm-compile-source--persistent-help (source)
(unless (assoc 'header-line source)
(append source '((header-line . helm-persistent-help-string)))))
(if (assoc 'header-line source)
source
(append source '((header-line . helm-persistent-help-string)))))
(add-to-list 'helm-compile-source-functions 'helm-compile-source--persistent-help)

(defun helm-persistent-help-string ()
Expand Down

0 comments on commit 4b8567d

Please sign in to comment.