mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 05:21:00 +01:00
20244: fix bug with zed-iting autoloaded functions.
This commit is contained in:
parent
f4973986e9
commit
4f5e97a0bf
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ if ((fun)) then
|
||||||
var="$(functions $1)"
|
var="$(functions $1)"
|
||||||
# If function is undefined but autoloadable, load it
|
# If function is undefined but autoloadable, load it
|
||||||
if [[ $var = *\#\ undefined* ]] then
|
if [[ $var = *\#\ undefined* ]] then
|
||||||
autoload +X $1
|
var="$(autoload +X $1; functions $1)"
|
||||||
elif [[ -z $var ]] then
|
elif [[ -z $var ]] then
|
||||||
var="$1() {
|
var="$1() {
|
||||||
}"
|
}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue