mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-10-01 08:21:17 +02:00
Adopt a suggestion from Oliver
This commit is contained in:
parent
38d2734e0a
commit
50734b7aca
@ -80,7 +80,10 @@ prompt_bart_precmd () {
|
||||
|
||||
# Reset the truncation widths for upcoming computations
|
||||
((PSCOL == 1)) || { PSCOL=1 ; prompt_bart_ps1 }
|
||||
[[ -o promptcr ]] || IFS='[;' read -s -d R escape\?$'\e[6n' lineno PSCOL
|
||||
if [[ -o promptcr ]]
|
||||
then print -nP "${(l.COLUMNS.. .)}\e[s${(pl.COLUMNS..\b.)}%E\e[u"
|
||||
else IFS='[;' read -s -d R escape\?$'\e[6n' lineno PSCOL
|
||||
fi
|
||||
((PSCOL == 1)) || prompt_bart_ps1
|
||||
((colno = COLUMNS-PSCOL))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user