From a3e0f4f2afe03a207b98d4c0aaecb5bbaa796883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Mon, 9 Nov 2020 18:33:59 +0100 Subject: [PATCH] fix(lib): make opts local in omz_urlencode to fix scoping bug Fixes error message when using zplug, due to $opts having been declared as an associative array: omz_urlencode:2: bad set of key/value pairs for associative array Fixes #9429 --- lib/functions.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/functions.zsh b/lib/functions.zsh index 58f0e3fb0..15526cd5f 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -134,6 +134,7 @@ zmodload zsh/langinfo # -P causes spaces to be encoded as '%20' instead of '+' function omz_urlencode() { emulate -L zsh + local -a opts zparseopts -D -E -a opts r m P local in_str=$1