xC: make libedit history switching more reliable

This commit is contained in:
Přemysl Eric Janouch 2022-08-29 09:20:01 +02:00
parent 9d5e57a501
commit dbe95fa298
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 0 deletions

2
xC.c
View File

@ -1057,6 +1057,8 @@ input_el__bottom (struct input_el *self)
(void) el_wgets (self->editline, &dummy_count);
}
// Otherwise input may survive our erasing, reproducer: a^Rb^[^N
input_el_clear_line (self);
el_wset (self->editline, EL_SETFP, 1, out);
}