mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 09:41:44 +02:00
Detect autoloadable functions properly in zed.
This commit is contained in:
parent
97a345de50
commit
8ffa3c17cf
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2000-07-27 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 12396: Functions/Misc/zed: The value of `$(functions $1)' for
|
||||||
|
autoloadable functions has changed.
|
||||||
|
|
||||||
2000-07-27 Sven Wischnowsky <wischnow@zsh.org>
|
2000-07-27 Sven Wischnowsky <wischnow@zsh.org>
|
||||||
|
|
||||||
* 12394: Completion/Core/_main_complete: don't hide possible
|
* 12394: Completion/Core/_main_complete: don't hide possible
|
||||||
|
|
|
@ -41,7 +41,7 @@ bindkey -a "ZZ" accept-line
|
||||||
if ((fun)) then
|
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
|
||||||
local dir
|
local dir
|
||||||
for dir in $fpath; do
|
for dir in $fpath; do
|
||||||
if [[ -f $dir/$1 ]] then
|
if [[ -f $dir/$1 ]] then
|
||||||
|
|
Loading…
Reference in a new issue