1
0
mirror of https://github.com/m00natic/vlfi.git synced 2025-01-18 20:10:47 +00:00

Fix vlf-next-batch-from-point behaviour near end of file.

This commit is contained in:
Andrey Kotlarski 2013-12-13 02:30:29 +02:00
parent bb482f0b0f
commit 655805ce48

3
vlf.el
View File

@ -392,7 +392,8 @@ When given MINIMAL flag, skip non important operations."
(defun vlf-next-batch-from-point ()
"Display batch of file data starting from current point."
(interactive)
(vlf-move-to-batch (+ vlf-start-pos (position-bytes (point)) -1))
(let ((start (+ vlf-start-pos (position-bytes (point)) -1)))
(vlf-move-to-chunk start (+ start vlf-batch-size)))
(goto-char (point-min)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;