1
0
Fork 0
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:
Bart Schaefer 2000-07-27 08:14:54 +00:00
parent 97a345de50
commit 8ffa3c17cf
2 changed files with 6 additions and 1 deletions

View file

@ -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>
* 12394: Completion/Core/_main_complete: don't hide possible

View file

@ -41,7 +41,7 @@ bindkey -a "ZZ" accept-line
if ((fun)) then
var="$(functions $1)"
# If function is undefined but autoloadable, load it
if [[ $var = undefined* ]] then
if [[ $var = *\#\ undefined* ]] then
local dir
for dir in $fpath; do
if [[ -f $dir/$1 ]] then