mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 13:01:28 +02:00
zsh-workers/8256
This commit is contained in:
parent
356af07859
commit
c0482994a9
2 changed files with 12 additions and 0 deletions
|
@ -49,6 +49,13 @@ for comp; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Now call the post-functions.
|
||||||
|
|
||||||
|
for post in "$comppostfuncs[@]"; do
|
||||||
|
"$post"
|
||||||
|
done
|
||||||
|
comppostfuncs=()
|
||||||
|
|
||||||
[[ "$compconfig[last_prompt]" = always ]] && compstate[last_prompt]=yes
|
[[ "$compconfig[last_prompt]" = always ]] && compstate[last_prompt]=yes
|
||||||
|
|
||||||
_lastcomp=( "${(@kv)compstate}" )
|
_lastcomp=( "${(@kv)compstate}" )
|
||||||
|
|
|
@ -112,6 +112,11 @@ fi
|
||||||
compconfig[correct_prompt]='correct to:'
|
compconfig[correct_prompt]='correct to:'
|
||||||
(( ${+compconfig[completer]} )) || compconfig[completer]=_complete
|
(( ${+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
|
# This function is used to register or delete completion functions. For
|
||||||
# registering completion functions, it is invoked with the name of the
|
# registering completion functions, it is invoked with the name of the
|
||||||
# function as it's first argument (after the options). The other
|
# function as it's first argument (after the options). The other
|
||||||
|
|
Loading…
Reference in a new issue