1
0
Fork 0
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:
Peter Stephenson 2014-07-30 12:26:03 +01:00
parent d3d0910293
commit 15db636380
3 changed files with 14 additions and 3 deletions

View file

@ -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