Fixed highlighting tab completion without zsh-syntax-highlighting

When pressing tab on an incomplete command like 'l' or 'c' the commandline
turns and stays green so even the output is colored green or the
highlight of the suggestions swaps colors when tabbing through.
This happens only if the zsh-syntax-highlighting plugin is not enabled.
I fixed this by adding the missing %f in prompt_char().
This commit is contained in:
Hannes Frank
2015-02-05 09:42:43 +01:00
parent 831d3c8006
commit b9f4fe7e83

View File

@@ -404,7 +404,7 @@ prompt_char() {
fi fi
if [[ $BULLETTRAIN_PROMPT_ROOT == true ]] then if [[ $BULLETTRAIN_PROMPT_ROOT == true ]] then
bt_prompt_char="%(!.%F{red}#.%F{green}${bt_prompt_char})" bt_prompt_char="%(!.%F{red}#.%F{green}${bt_prompt_char}%f)"
fi fi
echo -n $bt_prompt_char echo -n $bt_prompt_char