diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-07-06 22:17:43 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-07-06 22:17:43 +0300 |
commit | bb4e9d4a5a0f284f2141dbc94e596ee3df33e49b (patch) | |
tree | 2e984b327c22230214f62109c646b32ad222b716 /internal | |
parent | db86868a22b1a1d804e7765bb6d727abe4b52780 (diff) |
fix ruler color on ZSH 5.1
Diffstat (limited to 'internal')
-rwxr-xr-x | internal/p10k.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 32b43c34..c339461a 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -2677,13 +2677,13 @@ _p9k_init() { if (( _P9K_RETVAL == 1 && $#ruler_char == 1 )); then _p9k_color "" prompt_ruler BACKGROUND _p9k_background $_P9K_RETVAL - _P9K_LEFT_PREFIX+=$_P9K_RETVAL + _P9K_LEFT_PREFIX+=%b$_P9K_RETVAL _p9k_color "" prompt_ruler FOREGROUND _p9k_foreground $_P9K_RETVAL _P9K_LEFT_PREFIX+=$_P9K_RETVAL [[ $ruler_char == '.' ]] && local sep=',' || local sep='.' local ruler_len='${$((COLUMNS-_P9K_IND))/#-*/0}' - _P9K_LEFT_PREFIX+="%b\${(pl$sep$ruler_len$sep$sep${(q)ruler_char}$sep)}%k%f" + _P9K_LEFT_PREFIX+="\${(pl$sep$ruler_len$sep$sep${(q)ruler_char}$sep)}%k%f" _P9K_LEFT_PREFIX+='$_P9K_T[$((5+!_P9K_IND))]' else print -P "%F{red}WARNING!%f %BPOWERLEVEL9K_RULER_CHAR%b is not one character long. Ruler won't be rendered." |