xC: improve libedit multiline input handling

This commit is contained in:
Přemysl Eric Janouch 2022-08-29 08:31:11 +02:00
parent 4ed6693f57
commit 9d5e57a501
Signed by: p
GPG Key ID: A0420B94F92B9493

4
xC.c
View File

@ -1034,6 +1034,10 @@ static void
input_el__bottom (struct input_el *self)
{
// First, we need to redirect output to avoid ringing the terminal bell.
// Assuming that the line has just been erased but not redisplayed
// by caller, we need to CC_REFRESH first.
input_el__redisplay (self);
FILE *out = NULL;
el_wget (self->editline, EL_GETFP, 1, &out);
el_wset (self->editline, EL_SETFP, 1, self->null);