mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-04-17 11:35:31 +08:00
Added 'function' keyword
This commit is contained in:
parent
b3b34eab49
commit
0c0f3ae9a7
@ -568,7 +568,7 @@ _zsh_autosuggest_capture_completion_async() {
|
|||||||
# https://stackoverflow.com/a/7057118/154703
|
# https://stackoverflow.com/a/7057118/154703
|
||||||
autoload +X _complete
|
autoload +X _complete
|
||||||
functions[_original_complete]=$functions[_complete]
|
functions[_original_complete]=$functions[_complete]
|
||||||
_complete () {
|
function _complete () {
|
||||||
unset 'compstate[vared]'
|
unset 'compstate[vared]'
|
||||||
_original_complete "$@"
|
_original_complete "$@"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user