mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
Correct parameter order of pexpect.expect_prompt
Ensure that the increment= param is set via keyword, not via positional arg. This mistake was masking a bug where the "^a b c" match was not being tested, because it was being set as the value for increment!
This commit is contained in:
@@ -283,9 +283,9 @@ expect_prompt()
|
||||
send("a b c d\x01") # ctrl-a, move back to the beginning of the line
|
||||
send("\x07") # ctrl-g, kill bigword
|
||||
sendline("echo")
|
||||
expect_prompt("^b c d")
|
||||
expect_prompt("\nb c d")
|
||||
|
||||
send(" a b c d\x01") # ctrl-a, move back to the beginning of the line
|
||||
send("\x07") # ctrl-g, kill bigword
|
||||
sendline("echo")
|
||||
expect_prompt("^b c d")
|
||||
expect_prompt("\nb c d")
|
||||
|
||||
Reference in New Issue
Block a user