xC: make libedit history switching more reliable
This commit is contained in:
parent
9d5e57a501
commit
dbe95fa298
2
xC.c
2
xC.c
|
@ -1057,6 +1057,8 @@ input_el__bottom (struct input_el *self)
|
||||||
(void) el_wgets (self->editline, &dummy_count);
|
(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);
|
el_wset (self->editline, EL_SETFP, 1, out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue