zpty module is only needed for completion strategy

This commit is contained in:
Eric Freese committed 2018-06-30 15:09:24 -06:00
1 parent dad6be4d5e
commit 5529102afc
6 files changed
+7 -22

No files matched your search

-10
View File
@@ -1,10 +0,0 @@
#--------------------------------------------------------------------#
# Setup #
#--------------------------------------------------------------------#
# Precmd hooks for initializing the library and starting pty's
autoload -Uz add-zsh-hook
# Asynchronous suggestions are generated in a pty
zmodload zsh/zpty
+1
View File
@@ -17,4 +17,5 @@ _zsh_autosuggest_start() {
}
# Start the autosuggestion widgets on the next precmd
autoload -Uz add-zsh-hook
add-zsh-hook precmd _zsh_autosuggest_start
+2
View File
@@ -87,6 +87,8 @@ _zsh_autosuggest_capture_buffer() {
}
_zsh_autosuggest_capture_completion() {
zmodload -s zsh/zpty || return
typeset -g completion
local line REPLY