From 2a78cf48f886f2ed69aa7e8a0771bd5be5256dbc Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 29 Sep 2010 17:05:37 +0200 Subject: vim_mode: Fix :registers/:display with arguments. --- vim-mode/vim_mode.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3