]> code.delx.au - gnu-emacs-elpa/commit
swiper.el: Add a work-around for window-start not being current
authorOleh Krehel <ohwoeowho@gmail.com>
Sat, 18 Apr 2015 18:12:45 +0000 (20:12 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 18 Apr 2015 18:12:45 +0000 (20:12 +0200)
commita94ca830f844342293ae5b819b7c489fa5fa6a1f
tree8f13ad4d9a30da1c4f4c99dffa0b820b771b52b7
parent05b6fc7acf98d44bd71d625bc6056a4125981a70
swiper.el: Add a work-around for window-start not being current

* swiper.el (swiper--update-input-ivy): Update.

This results in double the window-height amount of lines being
heightlighted, instead of just window-height. But at least it doesn't
happen that some candidates within the current window aren't highlighted
since they're beyond the outdated window-start and window-end.

An alternative would be to use `redisplay' to update `window-start' and
`window-end', but that causes excessive blinking.

* ivy-test.el: Add a require.
ivy-test.el
swiper.el