mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 17:20:25 +02:00
zcalc base display fix
This commit is contained in:
parent
b63f2f824a
commit
6fa692b6e4
2 changed files with 7 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue