diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-29 15:05:37 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-29 15:05:37 +0000 |
commit | 2a78cf48f886f2ed69aa7e8a0771bd5be5256dbc (patch) | |
tree | 4d02a63c64f9de33c41ca8ad8da72ad13814fd86 /vim-mode/vim_mode.pl | |
parent | vim_mode: Add :reg[isters] and :di[splay] ex commands. (diff) | |
download | irssi-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.pl | 4 |
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; } |