bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: repeating an edit in vi mode doesn't work


From: Chet Ramey
Subject: Re: repeating an edit in vi mode doesn't work
Date: Wed, 31 Jul 2002 09:52:35 -0400

> Machine Type: i686-pc-linux-gnu
> 
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
> 
> Description:
> Repeating a command line edit in vi mode with . does not work.
> 
> Repeat-By:
> 
> On command line type:
> z z<esc>bia<esc>w.
> 
> should give
> az az
> 
> actually gives
> az z<beep>
> 
> 
> Fix:
>         Downgrading to 2.05a works.  );

Try this patch.  It does the job for me.

*** ../bash-2.05b/lib/readline/readline.c       Wed Mar 13 17:10:46 2002
--- lib/readline/readline.c     Tue Jul 30 17:46:44 2002
***************
*** 685,688 ****
--- 685,689 ----
  #if defined (VI_MODE)
    if (rl_editing_mode == vi_mode && _rl_keymap == vi_movement_keymap &&
+       key != ANYOTHERKEY &&
        _rl_vi_textmod_command (key))
      _rl_vi_set_last (key, rl_numeric_arg, rl_arg_sign);

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]