diff options
| author | Simon Ruderich <simon@ruderich.org> | 2010-10-03 02:18:19 +0000 | 
|---|---|---|
| committer | Simon Ruderich <simon@ruderich.org> | 2010-10-03 02:18:19 +0000 | 
| commit | b76dfe17e70d7bbd65f98c5c59fe41ff10acaca5 (patch) | |
| tree | b9308307b5a31e4dc7718655c25ea0041c5de77c | |
| parent | vim_mode: Fix undo positions for text-objects. (diff) | |
| download | irssi-scripts-b76dfe17e70d7bbd65f98c5c59fe41ff10acaca5.tar.gz irssi-scripts-b76dfe17e70d7bbd65f98c5c59fe41ff10acaca5.zip | |
vim_mode: Undo only tracks d operators.
y is irrelevant for undo and c will get handled once leaving insert
mode.
| -rw-r--r-- | vim-mode/vim_mode.pl | 4 | 
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? | 
