mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 08:43:09 -03:00
Restyle codebase
And again clang-format does something I don't like: - if (found != end && std::strncmp(found->name, name, len) == 0 && found->name[len] == 0) return found; + if (found != end && std::strncmp(found->name, name, len) == 0 && found->name[len] == 0) + return found; I *know* this is a bit of a long line. I would still quite like having no brace-less multi-line if *ever*. Either put the body on the same line, or add braces. Blergh
This commit is contained in:
@@ -41,7 +41,7 @@ send("\x1A")
|
||||
sleep(0.1)
|
||||
expect_prompt("has stopped")
|
||||
sendline("fg")
|
||||
sleep(0.1) # allow tty to transfer
|
||||
sleep(0.1) # allow tty to transfer
|
||||
send("\x03") # control-c to cancel it
|
||||
|
||||
expect_prompt()
|
||||
@@ -51,13 +51,13 @@ expect_prompt("jobs: There are no jobs")
|
||||
# Regression test for #2214: foregrounding from a key binding works!
|
||||
sendline(r"bind \cr 'fg >/dev/null 2>/dev/null'")
|
||||
expect_prompt()
|
||||
sendline("$fish_test_helper print_stop_cont");
|
||||
sendline("$fish_test_helper print_stop_cont")
|
||||
sleep(0.2)
|
||||
|
||||
send("\x1A") # ctrl-z
|
||||
send("\x1A") # ctrl-z
|
||||
expect_prompt("SIGTSTP")
|
||||
sleep(0.1)
|
||||
send("\x12") # ctrl-r, placing fth in foreground
|
||||
send("\x12") # ctrl-r, placing fth in foreground
|
||||
expect_str("SIGCONT")
|
||||
|
||||
# Do it again.
|
||||
|
||||
@@ -2,7 +2,12 @@
|
||||
from pexpect_helper import SpawnedProc
|
||||
|
||||
sp = SpawnedProc()
|
||||
send, sendline, expect_prompt, expect_str = sp.send, sp.sendline, sp.expect_prompt, sp.expect_str
|
||||
send, sendline, expect_prompt, expect_str = (
|
||||
sp.send,
|
||||
sp.sendline,
|
||||
sp.expect_prompt,
|
||||
sp.expect_str,
|
||||
)
|
||||
|
||||
expect_prompt()
|
||||
sendline("function echo_wrap ; /bin/echo $argv ; sleep 0.1; end")
|
||||
|
||||
Reference in New Issue
Block a user