1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-07 23:51:14 +02:00

zsh-workers/8256

This commit is contained in:
Tanaka Akira 1999-10-14 15:03:13 +00:00
parent 356af07859
commit c0482994a9
2 changed files with 12 additions and 0 deletions

View file

@ -49,6 +49,13 @@ for comp; do
fi
done
# Now call the post-functions.
for post in "$comppostfuncs[@]"; do
"$post"
done
comppostfuncs=()
[[ "$compconfig[last_prompt]" = always ]] && compstate[last_prompt]=yes
_lastcomp=( "${(@kv)compstate}" )

View file

@ -112,6 +112,11 @@ fi
compconfig[correct_prompt]='correct to:'
(( ${+compconfig[completer]} )) || compconfig[completer]=_complete
# This can hold names of functions that are to be called after all
# matches have been generated.
comppostfuncs=()
# This function is used to register or delete completion functions. For
# registering completion functions, it is invoked with the name of the
# function as it's first argument (after the options). The other