From dbe95fa298bc752d6ceeb5b8cba06e19d253020f Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Mon, 29 Aug 2022 09:20:01 +0200 Subject: xC: make libedit history switching more reliable --- xC.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xC.c b/xC.c index 2de5c92..c784bba 100644 --- a/xC.c +++ b/xC.c @@ -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); } -- cgit v1.2.3-70-g09d2