Merge pull request #460 from psprint/%x-prompt-expn

fix: assign to functions hash to enable `%x`
This commit is contained in:
vladislav doster 2023-02-12 20:41:39 -06:00 committed by GitHub
commit b5338e0252
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,11 +394,11 @@ builtin setopt noaliases
retval=$?
}
} else {
eval "function ${(q)func} {
functions[$func]="
local -a fpath
fpath=( ${(qqq)PLUGIN_DIR} ${(qqq@)fpath_elements} ${(qqq@)fpath} )
builtin autoload -X ${(j: :)${(q-)opts[@]}}
}"
"
retval=$?
}
else