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

Update file size when moving to end of buffer.

This commit is contained in:
Andrey Kotlarski 2014-01-14 01:11:07 +02:00
parent 98ddc3afd9
commit 38e8f6c4e1

4
vlf.el
View File

@ -120,7 +120,8 @@
(defun vlf (file)
"View Large FILE in batches.
You can customize number of bytes displayed by customizing
`vlf-batch-size'."
`vlf-batch-size'.
Return newly created buffer."
(interactive "fFile to open: ")
(let ((vlf-buffer (generate-new-buffer "*vlf*")))
(set-buffer vlf-buffer)
@ -198,6 +199,7 @@ with the prefix argument DECREASE it is halved."
(defun vlf-end-of-file ()
"Jump to end of file content."
(interactive)
(vlf-verify-size)
(vlf-move-to-batch vlf-file-size))
(defun vlf-revert (&optional _ignore-auto noconfirm)