about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-08-31 16:55:26 +0100
committerPeter Stephenson <pws@zsh.org>2017-08-31 16:55:26 +0100
commitb2e44bce625fce957d1651b696f571521c58a7af (patch)
tree128f3dd07c1f5213dd1698172e7a751e3e948457
parentebcea98eca33b8894d29545f1a46331d03f3913a (diff)
downloadzsh-b2e44bce625fce957d1651b696f571521c58a7af.tar.gz
zsh-b2e44bce625fce957d1651b696f571521c58a7af.tar.xz
zsh-b2e44bce625fce957d1651b696f571521c58a7af.zip
Make mbegin, mend, match local in zed.
Needed for zstyle -m.
-rw-r--r--ChangeLog3
-rw-r--r--Functions/Misc/zed3
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8dddd7d55..a7edcdb20 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-08-31  Peter Stephenson  <p.stephenson@samsung.com>
 
+	* unposted: Functions/Misc/zed: zstyle -m can set match,
+	mbegin, mend, so declare locally.
+
 	* 41627: Src/loop.c, Test/C03traps.ztst: fix problem with
 	ERR_RETURN in initialisation scripts and also on nested
 	function involving ERR_RETURN suppression in the caller.
diff --git a/Functions/Misc/zed b/Functions/Misc/zed
index 33bd1025b..f571daf5e 100644
--- a/Functions/Misc/zed
+++ b/Functions/Misc/zed
@@ -36,6 +36,9 @@ fi
 
 local curcontext=zed:::
 
+# Matching used in zstyle -m: hide result from caller.
+# Variables not used directly here.
+local -a match mbegin mend
 zstyle -m ":completion:zed:*" insert-tab '*' ||
     zstyle ":completion:zed:*" insert-tab yes