Sync to zsh-lookup upstream repository
authorFrank Terbeck <ft@grml.org>
Tue, 5 Jan 2016 17:16:24 +0000 (18:16 +0100)
committerFrank Terbeck <ft@grml.org>
Tue, 5 Jan 2016 17:16:24 +0000 (18:16 +0100)
This fixes a bunch of warnings with zsh's new warn_create_global
behaviour.

usr_share_grml/zsh/functions/Lookup/lookupinit

index 802a9eb..b01551d 100644 (file)
@@ -23,6 +23,10 @@ function lookup() {
     local -ix lookup_remote lookup_printout lookup_use_qh lookup_help
     local -ax args
     local -Ax lookup_communicate lu_parseopts_args opts
+    # Silence a few warnings for now.
+    # See http://www.zsh.org/mla/workers/2015/msg03364.html for details.
+    local -a match mbegin mend
+    local MATCH; integer MBEGIN MEND
 
     backend='-init-'
     lookup_ei='-main-'