Thanks for the response!

I will change our uses so we set rl_completion_suppress_append in the
completion function instead.

Thanks,
Chad

On Tue, Nov 27, 2018 at 4:26 PM Chet Ramey <[email protected]> wrote:

> On 11/27/18 3:14 PM, Chad Whipkey wrote:
> > Hello,
> >
> > This occurs in release 6.2, and was a change in behavior from 5.x as far
> as
> > I know.
> >
> > If you have a program that has:
> >   rl_completion_append_char = '\0';
> > as part of its code to set up readline, then that value is reset to ' '
> > during completion - effectively making rl_completion_append_char not
> usable
> > this way.  I am pretty sure this worked on 5.x.
>
> This was changed almost 12 years ago in response to a bug report. All of
> the completion-function-specific variables are set to the defaults before
> an application-supplied completion function is called, and that's the only
> place they're set. Application completion functions can change whatever
> they want with the assurance the changes are temporary.
>
> BTW, if you want to suppress appending a character to completions, you can
> also set rl_completion_suppress_append in your completion function. That
> was added long before this change was made.
>
> Chet
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/
>
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to