This commit is contained in:
Alexander Gehrke (crater2150) 2017-09-30 22:05:52 +02:00
parent 4ceed76221
commit 464c9857cc
2 changed files with 2 additions and 1 deletions

View file

@ -105,6 +105,7 @@ function setprompt() {
i_width=${(S)infoline//\%\{*\%\}} # search-and-replace color escapes
i_width=${(%)i_width} # expand all escapes and count the chars
i_width=${#i_width} # expand all escapes and count the chars
((i_width += 1)) # workaround off by one, unknown reason
if [[ "$PROMPT_UNICODE" = "yes" ]]; then
filler="${rpscolor}${(l:$(( $COLUMNS - $i_width + 2))::─:)}"