[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exiting i-search using end-of-line on multi-line prompt in multi-byt
From: |
Chet Ramey |
Subject: |
Re: exiting i-search using end-of-line on multi-line prompt in multi-byte locale |
Date: |
Wed, 15 Mar 2017 10:16:52 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 3/12/17 6:57 PM, Grisha Levit wrote:
> As a minimal example:
>
> LC_CTYPE=en_US.UTF-8
> PS1='\n\[\e[0m\]'
>
> # put something into history:
>
> echo foo
>
> # ^R search for something that should put point in the middle of the string
>
> (reverse-i-search)`fo': echo foo
>
> # attempt to exit with end-of-line (^E)
>
> echo foo
> ^ <---point is here
>
> Trying to move beyond point does not work.
This will be fixed in the next devel branch push.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/