diff options
| author | Carlo Sala <carlosalag@protonmail.com> | 2024-10-23 12:37:25 +0200 |
|---|---|---|
| committer | Carlo Sala <carlosalag@protonmail.com> | 2024-10-23 12:37:25 +0200 |
| commit | eeb01c18c1d1edff0c2563764a998b2d30947844 (patch) | |
| tree | 32aeeadc8dc6df713eff7449b4e68020aad00236 /plugins | |
| parent | 7bbebcd520a113eb82e869aecca8f5c825540700 (diff) | |
| download | zsh-eeb01c18c1d1edff0c2563764a998b2d30947844.tar.gz zsh-eeb01c18c1d1edff0c2563764a998b2d30947844.tar.bz2 zsh-eeb01c18c1d1edff0c2563764a998b2d30947844.zip | |
fix(websearch): allow multi-word parameters
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/web-search/web-search.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh index 81eb1c77d..b97e33a0b 100644 --- a/plugins/web-search/web-search.plugin.zsh +++ b/plugins/web-search/web-search.plugin.zsh @@ -50,7 +50,7 @@ function web_search() { # build search url: # join arguments passed with '+', then append to search engine URL - url="${urls[$1]}$(omz_urlencode $param ${@[2,-1]})" + url="${urls[$1]}$(omz_urlencode $param ${(s: :)@[2,-1]})" else # build main page url: # split by '/', then rejoin protocol (1) and domain (2) parts with '//' |
