branch: elpa/helm commit 7e554e338438cb7ed01dca933c179b544b15ed3b Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Prevent displaying an empty space as popup-info when the function return nil. --- helm-utils.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helm-utils.el b/helm-utils.el index 22bef0bbb7..b116e1c3da 100644 --- a/helm-utils.el +++ b/helm-utils.el @@ -1047,9 +1047,10 @@ Assume regexp is a pcre based regexp." ;; Use helm-grep-fname prop instead of help-echo as help-echo ;; maybe used by mouse overlay after resume. (let ((pos (save-excursion (end-of-visual-line) (point)))) - (when popup-info-fn + (helm-aif (and popup-info-fn + (funcall popup-info-fn (helm-get-selection))) (helm-tooltip-show - (concat " " (funcall popup-info-fn (helm-get-selection))) + (concat " " it) pos))))))))))) ;;;###autoload