mirror of
https://github.com/m00natic/vlfi.git
synced 2025-01-31 02:00:47 +00:00
Fix vlf-next-batch-from-point behaviour near end of file.
This commit is contained in:
parent
bb482f0b0f
commit
655805ce48
3
vlf.el
3
vlf.el
@ -392,7 +392,8 @@ When given MINIMAL flag, skip non important operations."
|
|||||||
(defun vlf-next-batch-from-point ()
|
(defun vlf-next-batch-from-point ()
|
||||||
"Display batch of file data starting from current point."
|
"Display batch of file data starting from current point."
|
||||||
(interactive)
|
(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)))
|
(goto-char (point-min)))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user