Don't use `-s` option to `zmodload`
It is not available in zsh versions older than 5.3
This commit is contained in:
parent
5529102afc
commit
c0315e96d8
|
@ -87,7 +87,7 @@ _zsh_autosuggest_capture_buffer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_zsh_autosuggest_capture_completion() {
|
_zsh_autosuggest_capture_completion() {
|
||||||
zmodload -s zsh/zpty || return
|
zmodload zsh/zpty 2>/dev/null || return
|
||||||
|
|
||||||
typeset -g completion
|
typeset -g completion
|
||||||
local line REPLY
|
local line REPLY
|
||||||
|
|
|
@ -557,7 +557,7 @@ _zsh_autosuggest_capture_buffer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_zsh_autosuggest_capture_completion() {
|
_zsh_autosuggest_capture_completion() {
|
||||||
zmodload -s zsh/zpty || return
|
zmodload zsh/zpty 2>/dev/null || return
|
||||||
|
|
||||||
typeset -g completion
|
typeset -g completion
|
||||||
local line REPLY
|
local line REPLY
|
||||||
|
|
Loading…
Reference in New Issue