12669f29f0843b8b980dd137f150a74511f88842

Author
Thomas De Backer <Thomasisdebacker5@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

fix(gentoo): fix tab color completion (#9810)

This commit fixes an issue in the gentoo theme introduced in 3bb5e977.
Due to incorrect line width calculations, colors are incorrectly applied
when using tab.

Fixes #9778

Signed-off-by: Thomas De Backer <mosterdt@debacker.me>

Diff

 1diff --git a/themes/gentoo.zsh-theme b/themes/gentoo.zsh-theme
 2index ae3274022eb1b865f367490c0df4327a2ec8f901..e18bce8905bd4babacba857e703669f1bec0a4ab 100644
 3--- a/themes/gentoo.zsh-theme
 4+++ b/themes/gentoo.zsh-theme
 5@@ -25,4 +25,4 @@ gentoo_precmd() {
 6 autoload -U add-zsh-hook
 7 add-zsh-hook precmd gentoo_precmd
 8 
 9-PROMPT='%(!.%B%F{red}.%B%F{green}%n@)%m %F{blue}%(!.%1~.%~) ${vcs_info_msg_0_}%(!.#.$)%{$reset_color%} '
10+PROMPT='%(!.%B%F{red}.%B%F{green}%n@)%m %F{blue}%(!.%1~.%~) ${vcs_info_msg_0_}%(!.#.$)%k%b%f '