summaryrefslogtreecommitdiff
path: root/Functions/Misc/zcalc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2014-04-07 09:58:30 +0100
committerPeter Stephenson <pws@zsh.org>2014-04-07 09:58:30 +0100
commit47c440aa2a141b1af60c2df192ff257b902dd177 (patch)
treee169916202fd08bef21d878a010e172efa7023fd /Functions/Misc/zcalc
parent21d01000bee06c38dad3201f9609445d10b5de57 (diff)
downloadzsh-47c440aa2a141b1af60c2df192ff257b902dd177.tar.gz
zsh-47c440aa2a141b1af60c2df192ff257b902dd177.zip
32527: zcalc-auto-insert key binding for use in zcalc
Diffstat (limited to 'Functions/Misc/zcalc')
-rw-r--r--Functions/Misc/zcalc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Functions/Misc/zcalc b/Functions/Misc/zcalc
index b79644687..63f67adb0 100644
--- a/Functions/Misc/zcalc
+++ b/Functions/Misc/zcalc
@@ -96,6 +96,9 @@
emulate -L zsh
setopt extendedglob
+# For testing in ZLE functions.
+local ZCALC_ACTIVE=1
+
# TODO: make local variables that shouldn't be visible in expressions
# begin with _.
local line ans base defbase forms match mbegin mend psvar optlist opt arg