mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-06 11:21:22 +02:00
zcalc base display fix
This commit is contained in:
parent
b63f2f824a
commit
6fa692b6e4
2 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
2001-10-08 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 15980: Functions/Misc/zcalc: '[#16] 2000' ignored the base.
|
||||
|
||||
* unposted: LICENCE: wording change from ages ago.
|
||||
|
||||
2001-10-08 Oliver Kiddle <opk@zsh.org>
|
||||
|
|
|
@ -141,7 +141,11 @@ while vared -cehp "${(%)ZCALCPROMPT}" line; do
|
|||
eval "latest=\$(( $line ))"
|
||||
argv[num++]=$latest
|
||||
psvar[1]=$num
|
||||
print -- $(( $base $latest ))
|
||||
if [[ -z $base ]]; then
|
||||
print -- $latest
|
||||
else
|
||||
print -- $(( $base $latest ))
|
||||
fi
|
||||
fi
|
||||
line=
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue