annoying bash3/readline5 bug
Tim Waugh
twaugh at redhat.com
Tue Aug 10 08:49:05 UTC 2004
On Mon, Aug 09, 2004 at 09:42:44PM -0400, Paul Iadonisi wrote:
> On Mon, 2004-08-09 at 16:28, Paul Iadonisi wrote:
>
> [snip]
>
> > Anyhow, I'll file it in bugzilla later tonight when I get home. Just
> > wanted to post here to see if anyone else has seen it and discovered
> > some obscure new setting that I've missed.
>
> Filed as: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=129526
Fixed and reported upstream. Here's the patch I used:
--- bash-3.0/lib/readline/vi_mode.c.changechar 2004-08-10 09:14:04.959899571 +0100
+++ bash-3.0/lib/readline/vi_mode.c 2004-08-10 09:31:26.016912071 +0100
@@ -1310,12 +1310,16 @@
rl_vi_delete (1, c);
#if defined (HANDLE_MULTIBYTE)
if (MB_CUR_MAX > 1 && rl_byte_oriented == 0)
- while (_rl_insert_char (1, c))
- {
- RL_SETSTATE (RL_STATE_MOREINPUT);
- c = rl_read_key ();
- RL_UNSETSTATE (RL_STATE_MOREINPUT);
- }
+ {
+ if (rl_point < p) /* Did we retreat at EOL? */
+ rl_point++;
+ while (_rl_insert_char (1, c))
+ {
+ RL_SETSTATE (RL_STATE_MOREINPUT);
+ c = rl_read_key ();
+ RL_UNSETSTATE (RL_STATE_MOREINPUT);
+ }
+ }
else
#endif
{
Tim.
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20040810/064230e0/attachment.sig>
More information about the fedora-test-list
mailing list