summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-04-29 07:41:48 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-04-29 07:41:48 +0200
commitbdf6ae12663067bbed28a9a6cf16df7e00b327d7 (patch)
treef5aaa15dc46df4c8cbdb231d1b41b47ea4a78548 /helm.el
parent7d4a82bacdf6d12f4b2c92b1d266a31b1396c1f7 (diff)
DRY in helm-insert-match.
* helm.el (helm-insert-match): Do it, use end.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/helm.el b/helm.el
index 27385cba..0a1b06ee 100644
--- a/helm.el
+++ b/helm.el
@@ -3718,9 +3718,9 @@ respectively `helm-cand-num' and `helm-cur-source'."
(concat it "\nmouse-1: select candidate\nmouse-3: menu actions")
"mouse-1: select candidate\nmouse-3: menu actions"))))
(when num
- (put-text-property start (point-at-eol) 'helm-cand-num num))
+ (put-text-property start end 'helm-cand-num num))
(when source
- (put-text-property start (point-at-eol) 'helm-cur-source source))
+ (put-text-property start end 'helm-cur-source source))
(funcall insert-function "\n"))))
(defun helm--mouse-reset-selection-help-echo ()