mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Fix the undo pexpect
Add the missing expect_prompts to reflect where we send newlines.
This commit is contained in:
parent
15c0313c33
commit
25ac5bdb49
1 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,7 @@ send, sendline, sleep, expect_prompt, expect_re, expect_str = (
|
|||
expect_prompt()
|
||||
|
||||
sendline("set -g fish_autosuggestion_enabled 0")
|
||||
expect_prompt()
|
||||
sendline("bind U,n,d,o undo; bind R,e,d,o redo")
|
||||
expect_prompt()
|
||||
|
||||
|
@ -23,9 +24,10 @@ send("Undo")
|
|||
expect_str("echo")
|
||||
|
||||
send("Redo\r")
|
||||
expect_str("echo word")
|
||||
expect_prompt("echo word")
|
||||
|
||||
sendline("bind x begin-undo-group 'commandline -i \"+ \"' 'commandline -i 3' end-undo-group")
|
||||
expect_prompt()
|
||||
send("math 2 x\r")
|
||||
expect_prompt("5")
|
||||
|
||||
|
|
Loading…
Reference in a new issue