mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-01-30 09:47:12 +08:00
Add a comment explaining post-completion hook
This commit is contained in:
parent
5339d2703d
commit
2b05f5ed2d
@ -14,6 +14,9 @@ _zsh_autosuggest_capture_postcompletion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_zsh_autosuggest_capture_completion_widget() {
|
_zsh_autosuggest_capture_completion_widget() {
|
||||||
|
# Add a post-completion hook to be called after all completions have been
|
||||||
|
# gathered. The hook can modify compstate to affect what is done with the
|
||||||
|
# gathered completions.
|
||||||
local -a +h comppostfuncs
|
local -a +h comppostfuncs
|
||||||
comppostfuncs=(_zsh_autosuggest_capture_postcompletion)
|
comppostfuncs=(_zsh_autosuggest_capture_postcompletion)
|
||||||
|
|
||||||
|
@ -496,6 +496,9 @@ _zsh_autosuggest_capture_postcompletion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_zsh_autosuggest_capture_completion_widget() {
|
_zsh_autosuggest_capture_completion_widget() {
|
||||||
|
# Add a post-completion hook to be called after all completions have been
|
||||||
|
# gathered. The hook can modify compstate to affect what is done with the
|
||||||
|
# gathered completions.
|
||||||
local -a +h comppostfuncs
|
local -a +h comppostfuncs
|
||||||
comppostfuncs=(_zsh_autosuggest_capture_postcompletion)
|
comppostfuncs=(_zsh_autosuggest_capture_postcompletion)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user