From 0c0f3ae9a75f7226fa0023f62cfd73740a2865b3 Mon Sep 17 00:00:00 2001 From: Patryk Kobielak Date: Tue, 18 Jun 2019 16:36:58 +0200 Subject: [PATCH] Added 'function' keyword --- zsh-autosuggestions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index f214147..60f2063 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -568,7 +568,7 @@ _zsh_autosuggest_capture_completion_async() { # https://stackoverflow.com/a/7057118/154703 autoload +X _complete functions[_original_complete]=$functions[_complete] - _complete () { + function _complete () { unset 'compstate[vared]' _original_complete "$@" }