mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
d1a4b4bc73
The assertions were satisfied even though we never triggered any undo.
28 lines
544 B
Python
28 lines
544 B
Python
#!/usr/bin/env python3
|
|
from pexpect_helper import SpawnedProc
|
|
|
|
sp = SpawnedProc()
|
|
send, sendline, sleep, expect_prompt, expect_re, expect_str = (
|
|
sp.send,
|
|
sp.sendline,
|
|
sp.sleep,
|
|
sp.expect_prompt,
|
|
sp.expect_re,
|
|
sp.expect_str,
|
|
)
|
|
expect_prompt()
|
|
|
|
sendline("set -g fish_autosuggestion_enabled 0")
|
|
sendline("bind U,n,d,o undo; bind R,e,d,o redo")
|
|
expect_prompt()
|
|
|
|
send("echo word")
|
|
expect_str("echo word")
|
|
expect_str("echo word")
|
|
expect_str("echo word")
|
|
|
|
send("Undo")
|
|
expect_str("echo")
|
|
|
|
send("Redo")
|
|
expect_str("echo word")
|