diff options
Diffstat (limited to '')
-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; } |