summary refs log tree commit diff
diff options
context:
space:
mode:
-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