Skip to content

Commit

Permalink
Fix matching host prop in fuzzy-highlight-match when using icons
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryvolpiatto committed Nov 9, 2022
1 parent d6a00a6 commit a41d4ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helm-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -4586,7 +4586,8 @@ useful when the order of the candidates is meaningful, e.g. with
(let* ((pair (and (consp candidate) candidate))
(display (helm-stringify (if pair (car pair) candidate)))
(real (cdr pair))
(host (and file-comp (get-text-property 0 'host display)))
(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))
(mp (cond ((and mpart (string= display mpart)) nil)
Expand Down

0 comments on commit a41d4ae

Please sign in to comment.