Reformat with black.

This commit is contained in:
Łukasz Wieczorek
2025-02-06 16:08:01 +01:00
committed by David Adam
parent d32c455269
commit 82750bbaec
16 changed files with 135 additions and 86 deletions

View File

@@ -15,19 +15,21 @@ expect_prompt()
# Test --showing-suggestion before we dirty the history
sendline("echo hello")
expect_prompt()
sendline("function debug; commandline --showing-suggestion; set -g cmd_status $status; end")
sendline(
"function debug; commandline --showing-suggestion; set -g cmd_status $status; end"
)
expect_prompt()
sendline("bind ctrl-p debug");
sendline("bind ctrl-p debug")
expect_prompt()
send("echo hell")
sleep(0.1) # wait for suggestion to appear under CI
sleep(0.1) # wait for suggestion to appear under CI
send(control("p"))
sendline("")
expect_prompt("hell")
sendline("echo cmd_status: $cmd_status")
expect_prompt("cmd_status: 0")
send("echo goodb")
sleep(0.1) # wait for suggestion to appear under CI
sleep(0.1) # wait for suggestion to appear under CI
send(control("p"))
sendline("")
expect_prompt("goodb")