[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm eda9a8b322 2/2: Highlight matches on real if possible
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm eda9a8b322 2/2: Highlight matches on real if possible (HFF) |
Date: |
Thu, 20 Oct 2022 11:58:53 -0400 (EDT) |
branch: elpa/helm
commit eda9a8b3220b2d9ad68e0e8a890a81861aab274a
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@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.