]> code.delx.au - gnu-emacs-elpa/commit
Use flx for highlighting fuzzy matches
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 6 Jan 2016 09:25:30 +0000 (10:25 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 6 Jan 2016 09:28:39 +0000 (10:28 +0100)
commit12523d0574ee48e7d784b48ae8126acca1b533e0
tree044395c925ff3f9e8024f82e85bb0e5d25bb773b
parente070f4c4d24e21b3c80d4f9cef73a7d4d4eade4e
Use flx for highlighting fuzzy matches

* ivy.el (ivy--flx-sort): `flx-score' returns ((score i1 i2 i3 ...) str).
Use i1, i2, i3 ... to highlight str appropriately.
(ivy--format-minibuffer-line): Don't re-highlight str for
`ivy--regex-fuzzy', it was already highlighted by `ivy--flx-sort'.

Re #207
ivy.el