bind.py (fish-3.5.0.tar.xz) | : | bind.py (fish-3.5.1.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 295 | skipping to change at line 295 | |||
# \x17 is ctrl-w. | # \x17 is ctrl-w. | |||
send("echo git@github.com:fish-shell/fish-shell") | send("echo git@github.com:fish-shell/fish-shell") | |||
send("\x17\x17\r") | send("\x17\x17\r") | |||
expect_prompt("git@github.com:", unmatched="ctrl-w does not stop at :") | expect_prompt("git@github.com:", unmatched="ctrl-w does not stop at :") | |||
send("echo git@github.com:fish-shell/fish-shell") | send("echo git@github.com:fish-shell/fish-shell") | |||
send("\x17\x17\x17\r") | send("\x17\x17\x17\r") | |||
expect_prompt("git@", unmatched="ctrl-w does not stop at @") | expect_prompt("git@", unmatched="ctrl-w does not stop at @") | |||
sendline("abbr --add foo 'echo foonanana'") | ||||
expect_prompt() | ||||
sendline("bind ' ' expand-abbr or self-insert") | ||||
expect_prompt() | ||||
send("foo ") | ||||
expect_str("echo foonanana") | ||||
send(" banana\r") | ||||
expect_str(" banana\r") | ||||
expect_prompt("foonanana banana") | ||||
# Ensure that nul can be bound properly (#3189). | # Ensure that nul can be bound properly (#3189). | |||
send("bind -k nul 'echo nul seen'\r") | send("bind -k nul 'echo nul seen'\r") | |||
expect_prompt() | expect_prompt() | |||
send("\0" * 3) | send("\0" * 3) | |||
# We need to sleep briefly before emitting a newline, because when we execute th e | # We need to sleep briefly before emitting a newline, because when we execute th e | |||
# key bindings above we place the tty in external-proc mode (see #7483) and rest oring | # key bindings above we place the tty in external-proc mode (see #7483) and rest oring | |||
# the mode to shell-mode races with the newline emitted below (i.e. sometimes it may | # the mode to shell-mode races with the newline emitted below (i.e. sometimes it may | |||
# be echoed). | # be echoed). | |||
sleep(0.1) | sleep(0.1) | |||
send("\r") | send("\r") | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 10 lines changed or added |