Open kurnevsky opened 5 years ago
Can be fixed with a dirty hack:
(advice-add 'ivy--highlight-fuzzy :around (lambda (orig-fun &rest args)
(let* ((cols (split-string (car args) (char-to-string #x200B)))
(res (apply orig-fun (list (car cols)))))
(mapconcat 'identity (cons res (cdr cols)) ""))))
(advice-add 'ivy-rich-normailze-width :around (lambda (orig-fun &rest args)
(pcase args
(`(,str ,len ,left)
(apply orig-fun (list (concat str (char-to-string #x200B)) (1+ len) left))))))
Sorry for late reply and I currently can not find a elegant fix to this...
Reported to ivy repo because it happens with counsel as well: https://github.com/abo-abo/swiper/issues/1969
See the screenshot where the matching for 't' and 's' letters is displayed (with
ivy--regex-fuzzy
):