Fix the bind.py tests

Errant newlines were causing extra prompts.
This commit is contained in:
ridiculousfish 2024-06-02 15:47:15 -07:00
parent c0766c1844
commit abf92fcbd1

View File

@ -358,7 +358,7 @@ send('\x02\x02\x02') # ctrl-b, backward-char
sendline('\x1bu') # alt+u, upcase word
expect_prompt("fooBAR")
send("""
sendline("""
bind ctrl-g "
commandline --insert 'echo foo ar'
commandline -f backward-word
@ -367,7 +367,7 @@ send("""
commandline -f backward-char
commandline -f delete-char
"
""")
""".strip())
send('\x07') # ctrl-g
send('\r')
expect_prompt("foobar")