branch: elpa/helm
commit 61c2efe9f5b03eac04a36ca86be163dae1574301
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Remove icon from display in helm-get-selection #2743
---
helm-core.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/helm-core.el b/helm-core.el
index f405d451337..f09cbc0650e 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -2530,7 +2530,10 @@ when you want the `display-to-real' function(s) to be
applied."
;; is not empty but have no selection yet,
;; this happen with grep sentinel sending an
;; error message in helm-buffer when no matches.
- (disp (unless (= beg end) (funcall disp-fn beg (1- end))))
+ (disp (unless (= beg end)
+ ;; Remove icon if some from display.
+ (replace-regexp-in-string
+ "^[[:multibyte:] \t]*" "" (funcall disp-fn beg (1-
end)))))
(src (or source (helm-get-current-source)))
(selection (helm-acond (force-display-part disp)
;; helm-realvalue always takes precedence