mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 06:24:01 +00:00
__fish_print_pipestatus: Reset modifiers again
Called as __fish_print_pipestatus "[foo" "oof]" "|" (set_color green) (set_color --bold blue) 0 1 2 it would make the closing `oof]` bold green. Fixes #7771.
This commit is contained in:
parent
a36dbad3b8
commit
0a3fec5e8b
1 changed files with 4 additions and 2 deletions
|
@ -28,8 +28,10 @@ function __fish_print_pipestatus --description "Print pipestatus for prompt"
|
|||
if test "$last_status" -ne "$argv[-1]"
|
||||
set last_status_string " "$status_color$last_status
|
||||
end
|
||||
printf "%s" $brace_sep_color $left_brace \
|
||||
set -l normal (set_color normal)
|
||||
# The "normal"s are to reset modifiers like bold - see #7771.
|
||||
printf "%s" $normal $brace_sep_color $left_brace \
|
||||
$status_color $last_pipestatus_string \
|
||||
$brace_sep_color $right_brace $last_status_string (set_color normal)
|
||||
$normal $brace_sep_color $right_brace $normal $last_status_string $normal
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue