On 3/7/14 2:25 AM, Daan van Rossum wrote:
> Hi Chet,
> 
> Readline 6.3 has a new bug in vi-mode:
> the "." command does no longer redo the latest "dw", "dl", "D", ... commands.
> 
> Reverting back to version 6.2 fixed the issue for me.

Thanks for the report.  It's the result of an overzealous attempt to keep
the arrow keys from setting vi mode's idea of the last command.  Here's a
patch to bash-4.3 that should work; you can apply it to readline-6.3 with
the right options to patch.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/
*** ../bash-4.3/lib/readline/readline.c	2013-10-28 14:58:06.000000000 -0400
--- lib/readline/readline.c	2014-03-07 15:20:33.000000000 -0500
***************
*** 965,969 ****
    if (rl_editing_mode == vi_mode && _rl_keymap == vi_movement_keymap &&
        key != ANYOTHERKEY &&
!       rl_key_sequence_length == 1 &&	/* XXX */
        _rl_vi_textmod_command (key))
      _rl_vi_set_last (key, rl_numeric_arg, rl_arg_sign);
--- 965,969 ----
    if (rl_editing_mode == vi_mode && _rl_keymap == vi_movement_keymap &&
        key != ANYOTHERKEY &&
!       _rl_dispatching_keymap == vi_movement_keymap &&
        _rl_vi_textmod_command (key))
      _rl_vi_set_last (key, rl_numeric_arg, rl_arg_sign);

Reply via email to