aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-27 01:45:36 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-27 01:45:36 +0000
commit8b514733fa3dbfdd0fad2a8e38061a499fca5c7b (patch)
tree5fab4aa2cfe4184d43b395785b1afd05794c1c22 /vim-mode
parentvim_mode: Display count, operator, movement in statusbar. (diff)
downloadirssi-scripts-8b514733fa3dbfdd0fad2a8e38061a499fca5c7b.tar.gz
irssi-scripts-8b514733fa3dbfdd0fad2a8e38061a499fca5c7b.zip
vim_mode: Fix . to only ignore movements, and not more.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 38c1aa9..8fa2fee 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -901,7 +901,10 @@ sub handle_command {
}
# Store command, necessary for . But ignore movements only.
- if ($operator) {
+ if ($operator or $char eq 'x' or $char eq 'r' or
+ $char eq 'p' or $char eq 'P' or
+ $char eq 'C' or $char eq 'D' or
+ $char eq '~') {
$last->{char} = $char;
$last->{numeric_prefix} = $numeric_prefix;
$last->{operator} = $operator;