]> code.delx.au - gnu-emacs-elpa/commit
Improve swiper for multiple occurrences on one line
authorOleh Krehel <ohwoeowho@gmail.com>
Sat, 12 Dec 2015 08:41:07 +0000 (09:41 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 12 Dec 2015 08:41:07 +0000 (09:41 +0100)
commit83f89d8c3160b968a422127d14d245f3f4a2c733
treebf5059be3bfb1f3dfef7529ceff1f03d8f2ab87d
parenta4317f99e9baaab9207d943963fde9c7466289d1
Improve swiper for multiple occurrences on one line

* swiper.el (swiper--current-line):
(swiper--current-match-start): New defvar.
(swiper--init): Update.
(swiper--update-input-ivy): Don't move to line NUM if
`swiper--current-line' is equal to NUM. Later, store NUM in
`swiper--current-line' to avoid calling `line-number-at-pos'.
Additionally store `swiper--current-match-start' - it's necessary to
move there before searching for the regexp, since the point currently is
after the old regexp.

Fixes #314
swiper.el