branch: elpa/helm
commit eda9a8b3220b2d9ad68e0e8a890a81861aab274a
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Highlight matches on real if possible (HFF)
---
 helm-core.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/helm-core.el b/helm-core.el
index 49190b7672..c1d8d88dbd 100644
--- a/helm-core.el
+++ b/helm-core.el
@@ -4591,7 +4591,10 @@ useful when the order of the candidates is meaningful, 
e.g. with
          (mpart   (get-text-property 0 'match-part display))
          (mp      (cond ((and mpart (string= display mpart)) nil)
                         (mpart)
-                        (file-comp (file-name-nondirectory display))))
+                        ;; FIXME: This may be wrong when match-on-real
+                        ;; is nil, so we should flag match-on-real on
+                        ;; top and use it.
+                        (file-comp (file-name-nondirectory (or real 
display)))))
          (count   0)
          beg-str end-str)
     ;; Extract all parts of display keeping original properties.

Reply via email to