mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-01 18:31:14 -03: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user