]> code.delx.au - gnu-emacs-elpa/commit
Don't reset the match to first if the current one still works
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 9 Oct 2015 08:44:11 +0000 (10:44 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 9 Oct 2015 08:44:11 +0000 (10:44 +0200)
commit3699fa9b416ba129c448cb60a1eb016d3a820ee9
tree94aac4a2d491c50b8d6d4623cd9b4b67f0e975a4
parentb06daca74bd7b09116b9d4f3bd9a93b2c11a5272
Don't reset the match to first if the current one still works

* ivy.el (ivy--recompute-index): If the old match is still located in
  the current matches after the change in input, keep it selected.

* ivy-test.el (ivy-read): Add test.

Fixes #258
ivy-test.el
ivy.el