]> code.delx.au - gnu-emacs-elpa/commit
Improve counsel-async initial anchoring
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 25 Mar 2016 21:07:42 +0000 (22:07 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 25 Mar 2016 21:07:42 +0000 (22:07 +0100)
commitccbf9efc66c5fc4ae34503e90bbdb147cac233f5
tree838c8e5173ea54e96d927625044021076ff72f06
parentd7561d29433128eefd17b86403948f21014b60d7
Improve counsel-async initial anchoring

* counsel.el (counsel--async-sentinel): Rely on
  `ivy-recompute-index-swiper-async' even when `ivy--old-cands' is nil.

* ivy.el (ivy--recompute-index): Check for `ivy--old-cands' being nil
  before trying to index it.
(ivy-recompute-index-swiper-async): When `ivy--old-cands' is nil, look
for a string that's closest to the line number at point.
counsel.el
ivy.el