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

Interactive change of batch size immediately updates content.

This commit is contained in:
Andrey Kotlarski 2013-04-01 11:47:49 +03:00
parent 8e65e13dd9
commit 88cf03caba

View File

@ -87,11 +87,10 @@ with the prefix argument DECREASE it is halved."
(interactive "P")
(or (assq 'vlfi-batch-size (buffer-local-variables))
(error "%s is not local in this buffer" 'vlfi-batch-size))
(setq vlfi-batch-size
(if decrease
(/ vlfi-batch-size 2)
(* vlfi-batch-size 2)))
(vlfi-update-buffer-name))
(setq vlfi-batch-size (if decrease
(/ vlfi-batch-size 2)
(* vlfi-batch-size 2)))
(vlfi-move-to-batch vlfi-start-pos))
(defun vlfi-format-buffer-name ()
"Return format for vlfi buffer name."