aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xC.c2
1 files changed, 2 insertions, 0 deletions
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);
}