From 6fa692b6e4eaaedb5209ca83da6735f85f3f7e62 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 8 Oct 2001 15:18:25 +0000 Subject: zcalc base display fix --- Functions/Misc/zcalc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Functions') diff --git a/Functions/Misc/zcalc b/Functions/Misc/zcalc index d9d1fb91b..78a48b9b0 100644 --- a/Functions/Misc/zcalc +++ b/Functions/Misc/zcalc @@ -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 -- cgit 1.4.1