aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl13
1 files changed, 6 insertions, 7 deletions
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'))) {