summaryrefslogtreecommitdiff
path: root/lib/functions.zsh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2022-05-23 12:25:11 -0600
committerTuowen Zhao <ztuowen@gmail.com>2022-05-23 12:25:11 -0600
commit901674e84756d64024cdc70f9590c3557c6d92d6 (patch)
treed3b90c50a39f4a7f220b0a19718dc305fe1c7af4 /lib/functions.zsh
parent2023d3ab658fe8ed4dd4ca33cd5974ab8f0ad945 (diff)
parent39b600e9e564db3dec265fcf2e3db4b5568dd93a (diff)
downloadzsh-901674e84756d64024cdc70f9590c3557c6d92d6.tar.gz
zsh-901674e84756d64024cdc70f9590c3557c6d92d6.tar.bz2
zsh-901674e84756d64024cdc70f9590c3557c6d92d6.zip
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'lib/functions.zsh')
-rw-r--r--lib/functions.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh
index 61f4dd49e..dfcc4d961 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -144,7 +144,7 @@ zmodload zsh/langinfo
# Returns nonzero if encoding failed.
#
# Usage:
-# omz_urlencode [-r] [-m] [-P] <string>
+# omz_urlencode [-r] [-m] [-P] <string> [<string> ...]
#
# -r causes reserved characters (;/?:@&=+$,) to be escaped
#
@@ -156,7 +156,7 @@ function omz_urlencode() {
local -a opts
zparseopts -D -E -a opts r m P
- local in_str=$1
+ local in_str="$@"
local url_str=""
local spaces_as_plus
if [[ -z $opts[(r)-P] ]]; then spaces_as_plus=1; fi