mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 06:45:11 +08: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
|
@ -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 New Issue
Block a user