mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-26 09:56:05 +02:00
Changed the precmd that works like PROMPT_SP to use "%#" instead
of just "#".
This commit is contained in:
parent
4a2f8d92e7
commit
6b3391194c
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue