From b2e44bce625fce957d1651b696f571521c58a7af Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 31 Aug 2017 16:55:26 +0100 Subject: Make mbegin, mend, match local in zed. Needed for zstyle -m. --- ChangeLog | 3 +++ Functions/Misc/zed | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8dddd7d55..a7edcdb20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2017-08-31 Peter Stephenson + * 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 -- cgit 1.4.1