diff --git a/src/strategies/completion.zsh b/src/strategies/completion.zsh index ff13b81..5f71d98 100644 --- a/src/strategies/completion.zsh +++ b/src/strategies/completion.zsh @@ -87,7 +87,7 @@ _zsh_autosuggest_capture_buffer() { } _zsh_autosuggest_capture_completion() { - zmodload -s zsh/zpty || return + zmodload zsh/zpty 2>/dev/null || return typeset -g completion local line REPLY diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 0052c69..41c659f 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -557,7 +557,7 @@ _zsh_autosuggest_capture_buffer() { } _zsh_autosuggest_capture_completion() { - zmodload -s zsh/zpty || return + zmodload zsh/zpty 2>/dev/null || return typeset -g completion local line REPLY