bug-bash
[Top][All Lists]
Advanced

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

Re: backward-kill-word is not refreshing correctly


From: Jay Freeman (saurik)
Subject: Re: backward-kill-word is not refreshing correctly
Date: Fri, 10 Apr 2009 15:46:36 -0700 (PDT)
User-agent: G2/1.0

> > When I type a long string of text and start pressing ctrl-W to 
> > backwards-kill words, bash deletes the words but doesn't visually refresh 
> > (the words still appear on the command line). This was not occurring for me 
> > in the 3.x series of Bash.

> I having a problem similar to this. For me, kill-word /never/
> refreshes the screen. Additionally, moving up/down through the command
> history doesn't always cause a refresh either (in a manner
> deterministic but stochastic).
...
> I have tried building bash 4.x against ncurses 5.4 and 5.7, I have
> tried compiling it against a standalone readline 6.x and using a built-
> in copy, and I have tried compiling both for thumb and arm.

And, it turns out that had I tested a standalone readline 5.2, it
would have worked fine ;P. The problem was introduced somewhere in
readline between bash 3.2 and 4.0. I figured this out by playing with
bash some to figure out where it was displaying things to the screen,
and then started whittling away at the diff of readline's display.c
from 3.2 to 4.0.

In the end I managed to isolate it down to the single diff hunk that
was causing the problem. It should be made clear that I have no clue
what this code is doing, or why it was changed from 3.2 to 4.0: all I
know is that the old version worked for me, and this one did not. I am
therefore not advocating that removing it is the "correct" fix, and am
only providing this information in the hope it will help debug the
issue.

So, this patch solves my problem, and maybe it will solve Matt's as
well:

http://svn.telesphoreo.org/trunk/data/readline/lendiff.diff

While I'm at it, I highly recommend removing the extraneous CFLAGS
overrides from readline's configure.in: they break autoconf's gcc -g
detection, if nothing else.

http://svn.telesphoreo.org/trunk/data/readline/cflags.diff

Sincerely,
Jay Freeman (saurik)
saurik@saurik.com
http://www.saurik.com/


reply via email to

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