NetBSD-Bugs archive

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

Re: lib/56647: Fix misbehaviour in libedit support for readline



Hi Walter,

Please submit patches with diff -u so we can get some context.
It would also be nice if you had a description how to reproduce the issue.
Anyway is this what you mean in your patch?

Thanks,

christos

Index: readline.c
===================================================================
RCS file: /cvsroot/src/lib/libedit/readline.c,v
retrieving revision 1.169
diff -u -p -u -r1.169 readline.c
--- readline.c  11 Jan 2022 18:30:15 -0000      1.169
+++ readline.c  22 Jan 2022 17:34:06 -0000
@@ -2149,6 +2149,7 @@ rl_callback_read_char(void)
                        wbuf = NULL;
                (*(void (*)(const char *))rl_linefunc)(wbuf);
        }
+       _rl_update_pos();
 }

 void
@@ -2176,6 +2177,7 @@ rl_redisplay(void)
        a[0] = (char)e->el_tty.t_c[TS_IO][C_REPRINT];
        a[1] = '\0';
        el_push(e, a);
+       rl_forced_update_display();
 }

 int

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index