mirror of
https://github.com/m00natic/vlfi.git
synced 2025-02-24 05:48:06 +00:00
Fix vlfi-revert to revert on user confirmation.
This commit is contained in:
parent
298d8f59d9
commit
563d9ca423
9
vlfi.el
9
vlfi.el
@ -225,13 +225,12 @@ With FROM-END prefix, start from the back."
|
||||
(interactive)
|
||||
(vlfi-insert-file t))
|
||||
|
||||
(defun vlfi-revert (&optional ignore-auto noconfirm)
|
||||
"Revert current chunk. Ignore IGNORE-AUTO.
|
||||
(defun vlfi-revert (&optional _ignore-auto noconfirm)
|
||||
"Revert current chunk. Ignore _IGNORE-AUTO.
|
||||
Ask for confirmation if NOCONFIRM is nil."
|
||||
(ignore ignore-auto)
|
||||
(or noconfirm
|
||||
(if (or noconfirm
|
||||
(yes-or-no-p (format "Revert buffer from file %s? "
|
||||
buffer-file-name))
|
||||
buffer-file-name)))
|
||||
(vlfi-move-to-chunk vlfi-start-pos vlfi-end-pos)))
|
||||
|
||||
(defun vlfi-jump-to-chunk (n)
|
||||
|
Loading…
x
Reference in New Issue
Block a user