mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Behave correctly in environments without zsh/zpty
This commit is contained in:
parent
15931f04ff
commit
66896c4999
2 changed files with 2 additions and 2 deletions
|
@ -7,4 +7,4 @@
|
||||||
autoload -Uz add-zsh-hook
|
autoload -Uz add-zsh-hook
|
||||||
|
|
||||||
# Asynchronous suggestions are generated in a pty
|
# Asynchronous suggestions are generated in a pty
|
||||||
zmodload zsh/zpty
|
zmodload zsh/zpty 2> /dev/null || zpty() { return 1 }
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
autoload -Uz add-zsh-hook
|
autoload -Uz add-zsh-hook
|
||||||
|
|
||||||
# Asynchronous suggestions are generated in a pty
|
# Asynchronous suggestions are generated in a pty
|
||||||
zmodload zsh/zpty
|
zmodload zsh/zpty 2> /dev/null || zpty() { return 1 }
|
||||||
|
|
||||||
#--------------------------------------------------------------------#
|
#--------------------------------------------------------------------#
|
||||||
# Global Configuration Variables #
|
# Global Configuration Variables #
|
||||||
|
|
Loading…
Reference in a new issue