bug-bash
[Top][All Lists]
Advanced

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

Re: broken behaviour in vi editing-mod


From: Chet Ramey
Subject: Re: broken behaviour in vi editing-mod
Date: Mon, 2 Jul 2001 12:11:31 -0400

> Machine Type: i686-pc-linux-gnu
> 
> Bash Version: 2.04
> Patch Level: 0
> Release Status: release
> 
> Description:
> In vi editing-mode, f<char> moves forwards to the next <char>,
> t<char> moves forwards to char before the next <char>. F<char>
> searches back to <char> and T<char> searches back to char after 
> <char>
> 
> These can be combined with d, to delete all chars from the cursor
> to a certain char.  All work as expected except deleting back to
> after the named char, which does nothing.

A trivial typo in the source.  If you want to fix it, change the
declaration of `vi_motion' in lib/readline/vi_mode.c so that the
second occurrence of `t' is changed to `T':

*** ../bash-2.05/lib/readline/vi_mode.c Wed Nov  8 11:47:02 2000
--- lib/readline/vi_mode.c      Mon Jul  2 12:10:05 2001
***************
*** 82,86 ****
  
  /* Command keys which do movement for xxx_to commands. */
! static const char *vi_motion = " hl^$0ftFt;,%wbeWBE|";
  
  /* Keymap used for vi replace characters.  Created dynamically since
--- 82,86 ----
  
  /* Command keys which do movement for xxx_to commands. */
! static const char *vi_motion = " hl^$0ftFT;,%wbeWBE|";
  
  /* Keymap used for vi replace characters.  Created dynamically since

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

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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