diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-04 14:40:41 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-04 14:40:41 +0000 |
commit | b63078f77a1ba3d1fcdb2cbfac492aa553e5a33c (patch) | |
tree | c16523bcf8fd1fe4eef74240a4fd3f4b3a3bef92 /vim-mode | |
parent | vim_mode: Add gg, moves to oldest history line. (diff) | |
download | irssi-scripts-b63078f77a1ba3d1fcdb2cbfac492aa553e5a33c.tar.gz irssi-scripts-b63078f77a1ba3d1fcdb2cbfac492aa553e5a33c.zip |
vim_mode: Prevent j and k with operator.
Diffstat (limited to '')
-rw-r--r-- | vim-mode/vim_mode.pl | 5 |
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') { |