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:
parent
ed20475b55
commit
8da5114e53
1 changed files with 1 additions and 0 deletions
|
@ -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' )
|
||||||
|
|
Loading…
Reference in a new issue