mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +00:00
print a warning when POWERLEVEL9K_RULER_CHAR is invalid
This commit is contained in:
parent
e250797719
commit
58545efa01
1 changed files with 4 additions and 0 deletions
|
@ -2465,6 +2465,10 @@ _p9k_init() {
|
|||
local pad_len="\$((COLUMNS-$ruler_len))"
|
||||
_P9K_LEFT_PREFIX+="%b\${(pl$sep$ruler_len$sep$sep${(q)ruler_char}$sep)}%k%f"
|
||||
_P9K_LEFT_PREFIX+="\${(l$sep$pad_len$sep$sep $sep)}"
|
||||
else
|
||||
print -P "%F{red}WARNING!%f %BPOWERLEVEL9K_RULER_CHAR%b is not one character long. Ruler won't be rendered."
|
||||
print -P "Either change the value of %BPOWERLEVEL9K_RULER_CHAR%b or set %BPOWERLEVEL9K_SHOW_RULER=false%b to"
|
||||
print -P "disable ruler."
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue