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 committed 2018-06-30 16:54:33 -06:00
1 parent 5529102afc
commit c0315e96d8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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