branch: elpa/helm
commit cbbd47f4dbff9281d14342890fb8dbe6b062cff6
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Ensure to match props at end of string
At 0 (beg) we might have an icon.
---
helm-core.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/helm-core.el b/helm-core.el
index cb5104e056..038ced41c8 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -4727,7 +4727,8 @@ useful when the order of the candidates is meaningful,
e.g. with
(host (and file-comp (get-text-property
(max 0 (1- (length display))) 'host
display)))
(regex (helm--maybe-get-migemo-pattern pattern diacritics))
- (mpart (get-text-property 0 'match-part display))
+ ;; Match prop at end, because at 0 we might have an icon.
+ (mpart (get-text-property (1- (length display)) 'match-part
display))
(mp (cond ((and mpart (string= display mpart)) nil)
(mpart)
;; FIXME: This may be wrong when match-on-real