]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix "End of buffer" for swiper and visual-line-mode
authorOleh Krehel <ohwoeowho@gmail.com>
Sat, 3 Oct 2015 17:38:32 +0000 (19:38 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 3 Oct 2015 17:38:32 +0000 (19:38 +0200)
Fixes #247

swiper.el

index 9e70265f8618d940c657c5c20e2f8ab7872fc534..19d0a59209814aa1c4491acdbb5fe2eb8db2eba5 100644 (file)
--- a/swiper.el
+++ b/swiper.el
             (format "%%-%dd " swiper--width))
       (let ((line-number 0)
             (advancer (if visual-line-mode
-                          #'line-move
+                          (lambda (arg) (line-move arg t))
                         #'forward-line))
             candidates)
         (save-excursion