mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
%P at start of TCP function system prompt causes %-style prompt subst
This commit is contained in:
parent
d3d0910293
commit
15db636380
3 changed files with 14 additions and 3 deletions
|
|
@ -35,6 +35,9 @@ if [[ -n $tprompt ]]; then
|
|||
cursess="c:0"
|
||||
fi
|
||||
zformat -f REPLY $tprompt "s:$sess" "f:$read_fd" $cursess
|
||||
if [[ $REPLY = %P* ]]; then
|
||||
REPLY=${(%)${REPLY##%P}}
|
||||
fi
|
||||
# We will pass this back up.
|
||||
REPLY="$REPLY$*"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue