NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/56647: Fix misbehaviour in libedit support for readline
>Number: 56647
>Category: lib
>Synopsis: Fix misbehaviour in libedit support for readline
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jan 20 16:20:00 +0000 2022
>Originator: Walter Lozano
>Release:
>Organization:
Collabora
>Environment:
>Description:
Currently libedit does not properly:
- Updates rl_point and rl_end when using callback
- Does not update the screen with buffer contents when using rl_redisplay
>How-To-Repeat:
>Fix:
A possible improvement is in the patch below.
The _rl_update_pos() seems to be required in the callback is order to be able to use functions like rl_copy_text() or rl_replace_line().
For the update part, I still don't understand the whole refresh process, but I think that the patch is a step in the right direction.
Index: readline.c
===================================================================
RCS file: /cvsroot/src/lib/libedit/readline.c,v
retrieving revision 1.169
diff -r1.169 readline.c
2151a2152
> _rl_update_pos();
2175a2177,2178
>
> rl_forced_update_display();
Home |
Main Index |
Thread Index |
Old Index