emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vlf 655805c 174/310: Fix vlf-next-batch-from-point beha


From: Stefan Monnier
Subject: [elpa] externals/vlf 655805c 174/310: Fix vlf-next-batch-from-point behaviour near end of file.
Date: Sat, 28 Nov 2020 00:33:10 -0500 (EST)

branch: externals/vlf
commit 655805ce48dc2bc4f526ddbbb045ee2971cd14ec
Author: Andrey Kotlarski <m00naticus@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>

    Fix vlf-next-batch-from-point behaviour near end of file.
---
 vlf.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlf.el b/vlf.el
index 8d0eca5..ac657d6 100644
--- a/vlf.el
+++ b/vlf.el
@@ -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)))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]