aboutsummaryrefslogtreecommitdiff
path: root/evil-commands.el
diff options
context:
space:
mode:
authorTom Dalziel <tom_dl@hotmail.com>2024-06-16 18:09:50 +0200
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2024-06-16 18:45:31 +0200
commit7bfdb135882495ab7528b87c121ddafc3640d60e (patch)
treee4b3b3c8ceef77063c4ae9f9cd40866e605b5b47 /evil-commands.el
parente72562f0fa0256eb0868eaba271db31d602b91ee (diff)
Pause hooks and undos during blockwise (bulk) insert
Diffstat (limited to 'evil-commands.el')
-rw-r--r--evil-commands.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/evil-commands.el b/evil-commands.el
index e4fe002..a75bead 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -2684,6 +2684,7 @@ lines. This is the default behaviour for Visual-state insertion."
(when (memq (evil-visual-type) '(line block))
(1+ (evil-count-lines evil-visual-point evil-visual-mark)))
t)))
+ (and evil-want-fine-undo vcount (evil-start-undo-step))
(if (and (evil-visual-state-p) (eq (evil-visual-type) 'line))
(evil-insert-line count vcount)
(setq evil-insert-count count