aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-03 02:18:19 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-03 02:18:19 +0000
commitb76dfe17e70d7bbd65f98c5c59fe41ff10acaca5 (patch)
treeb9308307b5a31e4dc7718655c25ea0041c5de77c /vim-mode/vim_mode.pl
parentvim_mode: Fix undo positions for text-objects. (diff)
downloadirssi-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.
Diffstat (limited to '')
-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?