mirror of
https://github.com/m00natic/vlfi.git
synced 2025-01-31 10:10:48 +00:00
Interactive change of batch size immediately updates content.
This commit is contained in:
parent
8e65e13dd9
commit
88cf03caba
5
vlfi.el
5
vlfi.el
@ -87,11 +87,10 @@ with the prefix argument DECREASE it is halved."
|
|||||||
(interactive "P")
|
(interactive "P")
|
||||||
(or (assq 'vlfi-batch-size (buffer-local-variables))
|
(or (assq 'vlfi-batch-size (buffer-local-variables))
|
||||||
(error "%s is not local in this buffer" 'vlfi-batch-size))
|
(error "%s is not local in this buffer" 'vlfi-batch-size))
|
||||||
(setq vlfi-batch-size
|
(setq vlfi-batch-size (if decrease
|
||||||
(if decrease
|
|
||||||
(/ vlfi-batch-size 2)
|
(/ vlfi-batch-size 2)
|
||||||
(* vlfi-batch-size 2)))
|
(* vlfi-batch-size 2)))
|
||||||
(vlfi-update-buffer-name))
|
(vlfi-move-to-batch vlfi-start-pos))
|
||||||
|
|
||||||
(defun vlfi-format-buffer-name ()
|
(defun vlfi-format-buffer-name ()
|
||||||
"Return format for vlfi buffer name."
|
"Return format for vlfi buffer name."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user