From a0896e03e25e716c1c3ef76df8feee603dd5d488 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 6 Oct 2010 21:37:33 +0200 Subject: vim_mode: More cleanup of handle_command_cmd(). --- vim-mode/vim_mode.pl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'vim-mode/vim_mode.pl') diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 30bab6a..cf53735 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -1644,6 +1644,12 @@ sub handle_command_cmd { # argument. if ($movement) { $movement .= $char; + + # Counts + } elsif ($char =~ m/[1-9]/ || ($numeric_prefix && $char =~ m/[0-9]/)) { + print "Processing numeric prefix: $char" if DEBUG; + handle_numeric_prefix($char); + return 1; # call _stop() } # s is an alias for cl. @@ -1658,13 +1664,6 @@ sub handle_command_cmd { $operator = 'c'; } - if (!$movement && ($char =~ m/[1-9]/ || - ($numeric_prefix && $char =~ m/[0-9]/))) { - print "Processing numeric prefix: $char" if DEBUG; - handle_numeric_prefix($char); - return 1; # call _stop() - } - # text-objects (i a) are simulated with $movement if (!$movement && (exists $movements_multiple->{$char} or $operator and ($char eq 'i' or $char eq 'a'))) { -- cgit v1.2.3