mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
Tweak promptcr handling in "bart" prompt theme
This commit is contained in:
parent
3acf90f67e
commit
bee423bc9f
2 changed files with 7 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ prompt_bart_precmd () {
|
|||
# Reset the truncation widths for upcoming computations
|
||||
((PSCOL == 1)) || { PSCOL=1 ; prompt_bart_ps1 }
|
||||
if [[ -o promptcr ]]
|
||||
then print -nP "${(l.COLUMNS.. .)}\e[s${(pl.COLUMNS..\b.)}%E\e[u"
|
||||
then print -nPu 2 "${(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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue