From 9feac573c932a2598bd406b54aed633d199282fe Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Thu, 16 Feb 2017 19:27:32 -0700 Subject: [PATCH] Do not show any error output from async zpty server process --- src/async.zsh | 4 ++++ zsh-autosuggestions.zsh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/async.zsh b/src/async.zsh index da70b80..60055b9 100644 --- a/src/async.zsh +++ b/src/async.zsh @@ -20,6 +20,10 @@ _zsh_autosuggest_async_server() { # Output only newlines (not carriage return + newline) stty -onlcr + + # Silence any error messages + exec 2>/dev/null + local strategy=$1 local last_pid diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index d21bfd5..1492f19 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -550,6 +550,10 @@ _zsh_autosuggest_async_server() { # Output only newlines (not carriage return + newline) stty -onlcr + + # Silence any error messages + exec 2>/dev/null + local strategy=$1 local last_pid