summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-10-14 09:15:23 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-10-14 09:15:23 +0000
commit6b3391194c3a0bddede619f310adb08de7845fe0 (patch)
treef2756098f2b70e799e47e5354c5cfec43813ef73
parent4a2f8d92e7c3ced677c0a4257c3e017bdf6c00d6 (diff)
downloadzsh-6b3391194c3a0bddede619f310adb08de7845fe0.tar.gz
zsh-6b3391194c3a0bddede619f310adb08de7845fe0.zip
Changed the precmd that works like PROMPT_SP to use "%#" instead
of just "#".
-rw-r--r--Etc/FAQ.yo4
1 files changed, 2 insertions, 2 deletions
diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo
index f07185b11..bd1d214c2 100644
--- a/Etc/FAQ.yo
+++ b/Etc/FAQ.yo
@@ -1662,10 +1662,10 @@ sect(How do I prevent the prompt overwriting output when there is no newline?)
# Skip defining precmd if the PROMPT_SP option is available.
if ! eval '[[ -o promptsp ]] 2>/dev/null'; then
function precmd {
- # Output an inverse hash and a bunch spaces. We include
+ # Output an inverse char and a bunch spaces. We include
# a CR at the end so that any user-input that gets echoed
# between this output and the prompt doesn't cause a wrap.
- print -nP "%B%S#%s%b${(l:$((COLUMNS-1)):::):-}\r"
+ print -nP "%B%S%#%s%b${(l:$((COLUMNS-1)):::):-}\r"
}
fi
)