aboutsummaryrefslogtreecommitdiff
path: root/xC.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-08-29 09:20:01 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-08-29 09:20:56 +0200
commitdbe95fa298bc752d6ceeb5b8cba06e19d253020f (patch)
treed095c5f82c66bbbae282d6494c6892787e93fc05 /xC.c
parent9d5e57a501f37661ca533c9c3774dce186694010 (diff)
downloadxK-dbe95fa298bc752d6ceeb5b8cba06e19d253020f.tar.gz
xK-dbe95fa298bc752d6ceeb5b8cba06e19d253020f.tar.xz
xK-dbe95fa298bc752d6ceeb5b8cba06e19d253020f.zip
xC: make libedit history switching more reliable
Diffstat (limited to 'xC.c')
-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);
}