diff --git a/src/async.zsh b/src/async.zsh index be331ba..81ea5cf 100644 --- a/src/async.zsh +++ b/src/async.zsh @@ -102,6 +102,7 @@ _zsh_autosuggest_async_pty_recreate() { _zsh_autosuggest_async_start() { typeset -g _ZSH_AUTOSUGGEST_PTY_FD + _zsh_autosuggest_feature_detect_zpty_returns_fd _zsh_autosuggest_async_pty_recreate # We recreate the pty to get a fresh list of history events diff --git a/src/features.zsh b/src/features.zsh index 9c6a3ae..7a5248f 100644 --- a/src/features.zsh +++ b/src/features.zsh @@ -3,7 +3,7 @@ # Feature Detection # #--------------------------------------------------------------------# -_zsh_autosuggest_feature_detect() { +_zsh_autosuggest_feature_detect_zpty_returns_fd() { typeset -g _ZSH_AUTOSUGGEST_ZPTY_RETURNS_FD typeset -h REPLY diff --git a/src/start.zsh b/src/start.zsh index 2304fb3..6fa8ce9 100644 --- a/src/start.zsh +++ b/src/start.zsh @@ -7,7 +7,6 @@ _zsh_autosuggest_start() { add-zsh-hook -d precmd _zsh_autosuggest_start - _zsh_autosuggest_feature_detect _zsh_autosuggest_bind_widgets # Re-bind widgets on every precmd to ensure we wrap other wrappers. diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 2726661..4df6b2c 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -118,7 +118,7 @@ _zsh_autosuggest_escape_command() { # Feature Detection # #--------------------------------------------------------------------# -_zsh_autosuggest_feature_detect() { +_zsh_autosuggest_feature_detect_zpty_returns_fd() { typeset -g _ZSH_AUTOSUGGEST_ZPTY_RETURNS_FD typeset -h REPLY @@ -597,6 +597,7 @@ _zsh_autosuggest_async_pty_recreate() { _zsh_autosuggest_async_start() { typeset -g _ZSH_AUTOSUGGEST_PTY_FD + _zsh_autosuggest_feature_detect_zpty_returns_fd _zsh_autosuggest_async_pty_recreate # We recreate the pty to get a fresh list of history events @@ -611,7 +612,6 @@ _zsh_autosuggest_async_start() { _zsh_autosuggest_start() { add-zsh-hook -d precmd _zsh_autosuggest_start - _zsh_autosuggest_feature_detect _zsh_autosuggest_bind_widgets # Re-bind widgets on every precmd to ensure we wrap other wrappers.