diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2005-04-24 18:39:51 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2005-04-24 18:39:51 +0000 |
commit | 50734b7acaab0a3f03adf57a7738168d2a246c8c (patch) | |
tree | 33c1967b85f2dff30f796bd12f4036b9b215f1fb | |
parent | 38d2734e0a3f3935f99c0aa1b439abc060e0974a (diff) | |
download | zsh-50734b7acaab0a3f03adf57a7738168d2a246c8c.tar.gz zsh-50734b7acaab0a3f03adf57a7738168d2a246c8c.tar.xz zsh-50734b7acaab0a3f03adf57a7738168d2a246c8c.zip |
Adopt a suggestion from Oliver
-rw-r--r-- | Functions/Prompts/prompt_bart_setup | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Functions/Prompts/prompt_bart_setup b/Functions/Prompts/prompt_bart_setup index 36ec6f7ac..2f0e44f43 100644 --- a/Functions/Prompts/prompt_bart_setup +++ b/Functions/Prompts/prompt_bart_setup @@ -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)) |