From b76dfe17e70d7bbd65f98c5c59fe41ff10acaca5 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 3 Oct 2010 04:18:19 +0200 Subject: vim_mode: Undo only tracks d operators. y is irrelevant for undo and c will get handled once leaving insert mode. --- vim-mode/vim_mode.pl | 4 ++-- 1 file 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? -- cgit v1.2.3