Skip to content

Commit 3435925

Browse files
authored
Fix the problem of the empty prompt color (tmux-plugins#23)
The empty prompt is always shown as the prefix color even if the prefix is off. Because the empty color attribute (`$empty_highlight`) is not applied at `$client_prefix` in `highlight()`. So I have fixed it.
1 parent 3214e81 commit 3435925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prefix_highlight.tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ highlight() {
7878
fi
7979

8080
local -r extended_highlights="${copy_mode}${sync_panes}"
81-
local -r client_prefix="#{?client_prefix,$prefix_with_optional_affixes,$empty_with_optional_affixes}"
81+
local -r client_prefix="#{?client_prefix,$prefix_with_optional_affixes,${empty_highlight}$empty_with_optional_affixes}"
8282

8383
local -r highlight_on_prefix="${prefix_highlight}${client_prefix}${extended_highlights}#[default]"
8484
tmux set-option -gq "$status" "${status_value/$place_holder/$highlight_on_prefix}"

0 commit comments

Comments
 (0)