about summary refs log tree commit diff
path: root/Functions/Misc
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-04-18 13:20:50 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-04-18 13:20:50 +0000
commit8da5114e53e62ed1c52f8aad7ba60001a3db4c5b (patch)
tree7f26ef3fe22bcc67218b6e80ac45f78fb9a69ba8 /Functions/Misc
parented20475b5589ec6232daa04f27d95b804c62b7c6 (diff)
downloadzsh-8da5114e53e62ed1c52f8aad7ba60001a3db4c5b.tar.gz
zsh-8da5114e53e62ed1c52f8aad7ba60001a3db4c5b.tar.xz
zsh-8da5114e53e62ed1c52f8aad7ba60001a3db4c5b.zip
18450: set $compcontext to -math- to complete math context within zcalc
Diffstat (limited to 'Functions/Misc')
-rw-r--r--Functions/Misc/zcalc1
1 files changed, 1 insertions, 0 deletions
diff --git a/Functions/Misc/zcalc b/Functions/Misc/zcalc
index 31ab11dba..e8a28f9d1 100644
--- a/Functions/Misc/zcalc
+++ b/Functions/Misc/zcalc
@@ -106,6 +106,7 @@ zcalc_restore() {
 trap zcalc_restore HUP INT QUIT EXIT
 
 local line ans base defbase forms match mbegin mend psvar optlist opt arg
+local compcontext="-math-"
 integer num outdigits outform=1
 
 forms=( '%2$g' '%.*g' '%.*f' '%.*E' )