summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/functions.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh
index f5c671f9c..2e667332e 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -160,6 +160,8 @@ zmodload zsh/langinfo
# -P causes spaces to be encoded as '%20' instead of '+'
function omz_urlencode() {
emulate -L zsh
+ setopt norematchpcre
+
local -a opts
zparseopts -D -E -a opts r m P