From b9f4fe7e8325599651189b3bbddb1618c6df63e3 Mon Sep 17 00:00:00 2001 From: Hannes Frank Date: Thu, 5 Feb 2015 09:42:43 +0100 Subject: [PATCH] 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(). --- bullet-train.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bullet-train.zsh-theme b/bullet-train.zsh-theme index 6bc0013..a06b1e8 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -404,7 +404,7 @@ prompt_char() { fi 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 echo -n $bt_prompt_char