1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-24 04:50:27 +02:00

27577: sergio: (%) is not needed in zcalc prompt since PROMPTPERCENT is obeyed

This commit is contained in:
Peter Stephenson 2010-01-08 09:30:43 +00:00
parent b1e8b11abe
commit 8c60540ce6
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2010-01-08 Peter Stephenson <pws@csr.com>
* 27577: sergio: Functions/Misc/zcalc: vared -p obeys
the PROMPTPERCENT option so it's not necessary to have an
explicit (%) in the variable expansion.
2010-01-07 Clint Adams <clint@zsh.org>
* 27579: Completion/Unix/Command/_ssh: allow ssh -S argument to
@ -22,6 +28,7 @@
* Jesse Weinstein: 27558: Completion/Unix/Command/_espeak:
completion for espeak.
>>>>>>> 1.4856
2010-01-04 Peter Stephenson <pws@csr.com>
* 27556: Src/lex.c: lexsave() should sanitize more variables else
@ -12553,5 +12560,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4856 $
* $Revision: 1.4857 $
*****************************************************

View file

@ -152,7 +152,7 @@ for (( num = 1; num <= $#; num++ )); do
done
psvar[1]=$num
while vared -cehp "${(%)ZCALCPROMPT}" line; do
while vared -cehp "${ZCALCPROMPT}" line; do
[[ -z $line ]] && break
# special cases
# Set default base if `[#16]' or `[##16]' etc. on its own.