aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-29 15:05:37 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-29 15:05:37 +0000
commit2a78cf48f886f2ed69aa7e8a0771bd5be5256dbc (patch)
tree4d02a63c64f9de33c41ca8ad8da72ad13814fd86 /vim-mode/vim_mode.pl
parentvim_mode: Add :reg[isters] and :di[splay] ex commands. (diff)
downloadirssi-scripts-2a78cf48f886f2ed69aa7e8a0771bd5be5256dbc.tar.gz
irssi-scripts-2a78cf48f886f2ed69aa7e8a0771bd5be5256dbc.zip
vim_mode: Fix :registers/:display with arguments.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 6f5a70a..f801761 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -825,7 +825,9 @@ sub cmd_ex_command {
} elsif ($arg_str =~ /^(?:reg(?:isters)?|di(?:splay)?)(?:\s+(.+)$)?/) {
my @regs;
if ($1) {
- @regs = split //, $1 =~ s/\s+//g;
+ my $regs = $1;
+ $regs =~ s/\s+//g;
+ @regs = split //, $regs;
} else {
@regs = keys %$registers;
}