summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Functions/Prompts/prompt_bart_setup5
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))