Reset the readline loop state when setting the buffer

Fixes #7740.
This commit is contained in:
Fabian Homborg
2021-02-24 21:00:56 +01:00
parent 39230978b3
commit 459ac2b566
2 changed files with 18 additions and 0 deletions

View File

@@ -48,3 +48,12 @@ send("echo fo\t ")
send("\x07")
sendline("bar")
expect_re("foooo bar")
sendline("bind \cg 'commandline -f cancel; commandline \"\"'")
send("echo fo\t")
expect_re("foooo")
send("\x07")
sendline("echo bar")
expect_re("\nbar")
sendline("echo fo\t")
expect_re("foooo")