mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
users/16944: more locals needed in url-quote-magic
This commit is contained in:
parent
a2ad2a4bbd
commit
246a63d9d3
2 changed files with 8 additions and 2 deletions
|
@ -84,7 +84,7 @@ zstyle -m ':urlglobber' url-other-schema '*' ||
|
|||
# Define the "urlglobber" helper function and shorthand "globurl" alias
|
||||
|
||||
function urlglobber {
|
||||
local -a args globbed localschema otherschema
|
||||
local -a args globbed localschema otherschema reply
|
||||
local arg command="$1"
|
||||
shift
|
||||
zstyle -s :urlglobber url-local-schema localschema '|'
|
||||
|
@ -109,6 +109,7 @@ alias globurl='noglob urlglobber '
|
|||
function url-quote-magic {
|
||||
setopt localoptions noksharrays extendedglob
|
||||
local qkey="${(q)KEYS}"
|
||||
local -a reply
|
||||
if [[ "$KEYS" != "$qkey" ]]
|
||||
then
|
||||
local lbuf="$LBUFFER$qkey"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue