mirror of
https://github.com/m00natic/vlfi.git
synced 2025-01-31 10:10:48 +00:00
Show paging according to batch size instead of percentage.
This commit is contained in:
parent
24675d8741
commit
8787186619
5
vlfi.el
5
vlfi.el
@ -101,10 +101,11 @@ with the prefix argument DECREASE it is halved."
|
||||
|
||||
(defun vlfi-format-buffer-name ()
|
||||
"Return format for vlfi buffer name."
|
||||
(format "%s(%s)[%.2f%%%%](%d)"
|
||||
(format "%s(%s)[%d/%d](%d)"
|
||||
(file-name-nondirectory buffer-file-name)
|
||||
(file-size-human-readable vlfi-file-size)
|
||||
(/ (* 100 vlfi-end-pos) (float vlfi-file-size))
|
||||
(/ vlfi-end-pos vlfi-batch-size)
|
||||
(/ vlfi-file-size vlfi-batch-size)
|
||||
vlfi-batch-size))
|
||||
|
||||
(defun vlfi-update-buffer-name ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user