From b63078f77a1ba3d1fcdb2cbfac492aa553e5a33c Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 4 Oct 2010 16:40:41 +0200 Subject: vim_mode: Prevent j and k with operator. --- vim-mode/vim_mode.pl | 5 +++++ 1 file changed, 5 insertions(+) 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') { -- cgit v1.2.3