bug-bash
[Top][All Lists]
Advanced

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

Re: [bash 4.2] In vi mode, cc failed to change the whole line


From: Chet Ramey
Subject: Re: [bash 4.2] In vi mode, cc failed to change the whole line
Date: Thu, 17 Feb 2011 21:00:36 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7

On 2/16/11 11:43 PM, Clark J. Wang wrote:
> For example, in vi insert mode, I first enter a command like this:
> 
> # hello world
> 
> Then I press ESC and type cc, the cursor just moves to the beginning (under
> the char `h') and the whole line is not emptied. If I type more chars after
> cc, only the first `h' char is replaced and following `ello world' keeps
> unchanged. Note that other vi mode commands like cw and c$ work fine.

Thanks for the report.  Please try the attached patch; it fixes the problem
in the testing I've done.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

Attachment: vidomove-patch
Description: Text document


reply via email to

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