diff --git a/lib/functions.zsh b/lib/functions.zsh index a25855953..8ef3420bb 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -114,7 +114,7 @@ zmodload zsh/langinfo # Returns nonzero if encoding failed. # # Usage: -# omz_urlencode [-r] [-m] +# omz_urlencode [-r] [-m] [-P] # # -r causes reserved characters (;/?:@&=+$,) to be escaped # diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 5f61fe8ef..4c5068e9b 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -74,7 +74,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then # the host name to disambiguate local vs. remote paths. # Percent-encode the pathname. - local URL_PATH=$(omz_urlencode -P $PWD) + local URL_PATH="$(omz_urlencode -P $PWD)" [[ $? != 0 ]] && return 1 local PWD_URL="file://$HOST$URL_PATH" # Undocumented Terminal.app-specific control sequence