From 50734b7acaab0a3f03adf57a7738168d2a246c8c Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 24 Apr 2005 18:39:51 +0000 Subject: Adopt a suggestion from Oliver --- Functions/Prompts/prompt_bart_setup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Functions/Prompts') 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)) -- cgit 1.4.1