]> code.delx.au - gnu-emacs-elpa/commit
counsel-grep should pick candidates closest to point
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 6 Apr 2016 17:36:41 +0000 (19:36 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 6 Apr 2016 17:36:41 +0000 (19:36 +0200)
commit341b5a239f14cb9b385db32567edb1e792930c08
tree36a754c447f25d73c3af70f4a517be03b31a97e7
parentb39e449743c0603ed39f0ed838d7e7d1f93f06e0
counsel-grep should pick candidates closest to point

* ivy.el (ivy-recompute-index-swiper-async): Update.

Fixes the algorithm selecting the first matching candidate in case there
are 0 matching candidates following point. Now the last matching
candidate will be selected, resulting in less scrolling.
ivy.el