aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 09710eb..3d31b95 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1704,6 +1704,11 @@ sub handle_command_cmd {
} elsif ($char eq '.') {
print '. pressed but $last->{char} not set' if DEBUG;
$skip = 1;
+
+ # Ignore invalid operator/char combinations.
+ } elsif ($operator and ($char eq 'j' or $char eq 'k')) {
+ print "Invalid operator/char: $operator $char" if DEBUG;
+ $skip = 1;
}
# C and D force the matching operator
if ($char eq 'C') {