1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-29 19:00:57 +02:00

18450: set $compcontext to -math- to complete math context within zcalc

This commit is contained in:
Oliver Kiddle 2003-04-18 13:20:50 +00:00
parent ed20475b55
commit 8da5114e53

View file

@ -106,6 +106,7 @@ zcalc_restore() {
trap zcalc_restore HUP INT QUIT EXIT trap zcalc_restore HUP INT QUIT EXIT
local line ans base defbase forms match mbegin mend psvar optlist opt arg local line ans base defbase forms match mbegin mend psvar optlist opt arg
local compcontext="-math-"
integer num outdigits outform=1 integer num outdigits outform=1
forms=( '%2$g' '%.*g' '%.*f' '%.*E' ) forms=( '%2$g' '%.*g' '%.*f' '%.*E' )