mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
Fix crash with set_color --print-colors --background normal
Found in conjunction with #7805.
This commit is contained in:
@@ -61,3 +61,24 @@ expect_str("white")
|
||||
expect_str("yellow")
|
||||
expect_str("normal")
|
||||
expect_prompt()
|
||||
|
||||
# This used to crash
|
||||
sendline("set_color --print-colors --background normal")
|
||||
expect_str("black")
|
||||
expect_str("blue")
|
||||
expect_str("brblack")
|
||||
expect_str("brblue")
|
||||
expect_str("brcyan")
|
||||
expect_str("brgreen")
|
||||
expect_str("brmagenta")
|
||||
expect_str("brred")
|
||||
expect_str("brwhite")
|
||||
expect_str("bryellow")
|
||||
expect_str("cyan")
|
||||
expect_str("green")
|
||||
expect_str("magenta")
|
||||
expect_str("\n\x1b[31mred")
|
||||
expect_str("\n\x1b[37mwhite")
|
||||
expect_str("\n\x1b[33myellow")
|
||||
expect_str("normal")
|
||||
expect_prompt()
|
||||
|
||||
Reference in New Issue
Block a user