Don't use -s option to zmodload

It is not available in zsh versions older than 5.3
This commit is contained in:
Eric Freese 2018-06-30 16:54:33 -06:00
parent 5529102afc
commit c0315e96d8
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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