aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
Diffstat (limited to 'vim-mode')
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 51c4c0b..60746f2 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1730,8 +1730,8 @@ sub handle_command_cmd {
# Save an undo checkpoint here for operators, all repeatable
# movements, operators and repetition.
- if (defined $operator or exists $movements_repeatable->{$char} or
- $char eq '.') {
+ if ((defined $operator and $operator eq 'd') or
+ exists $movements_repeatable->{$char} or $char eq '.') {
# TODO: why do histpry entries still show up in undo
# buffer? Is avoiding the commands here insufficient?