Need to prevent zpty feature detection from HUPing existing zptys

This commit is contained in:
Eric Freese
2017-02-17 15:51:50 -07:00
parent c959408305
commit c4bfd8e2c6
3 changed files with 8 additions and 9 deletions

View File

@@ -122,7 +122,7 @@ _zsh_autosuggest_feature_detect() {
typeset -g _ZSH_AUTOSUGGEST_ZPTY_RETURNS_FD
typeset -h REPLY
zpty $ZSH_AUTOSUGGEST_ASYNC_PTY_NAME :
zpty $ZSH_AUTOSUGGEST_ASYNC_PTY_NAME '{ zshexit() { kill -KILL $$; sleep 1 } }'
if (( REPLY )); then
_ZSH_AUTOSUGGEST_ZPTY_RETURNS_FD=1