diff options
Diffstat (limited to 'vim-mode')
| -rw-r--r-- | vim-mode/vim_mode.pl | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 7bf6e28..1c282ad 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -490,8 +490,12 @@ sub cmd_movement_j {      if (defined $history_index) {          $history_index += $count;          print "History Index: $history_index" if DEBUG; +    # Prevent destroying the current input when pressing j after entering +    # command mode. Not exactly like in default irssi, but simplest solution +    # (and S can be used to clear the input line fast, which is what <down> +    # does in plain irssi).      } else { -        $history_index = $#history; +        return (undef, undef);      }      if ($history_index > $#history) { | 
