mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 11:50:38 +01:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user