From c0315e96d84a9f992d236131783aaecc9117004f Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Sat, 30 Jun 2018 16:54:33 -0600 Subject: [PATCH] Don't use `-s` option to `zmodload` It is not available in zsh versions older than 5.3 --- src/strategies/completion.zsh | 2 +- zsh-autosuggestions.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategies/completion.zsh b/src/strategies/completion.zsh index ff13b81..5f71d98 100644 --- a/src/strategies/completion.zsh +++ b/src/strategies/completion.zsh @@ -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 diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 0052c69..41c659f 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -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