From 5c891afd48e3c27faaff86f988816b11fe499dde Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Tue, 24 Jan 2017 19:58:25 -0700 Subject: [PATCH] Reset zsh options inside pty (from zsh-async) --- src/async.zsh | 2 ++ zsh-autosuggestions.zsh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/async.zsh b/src/async.zsh index 2e23fb6..566a81a 100644 --- a/src/async.zsh +++ b/src/async.zsh @@ -10,6 +10,8 @@ _zsh_autosuggest_async_fetch_suggestion() { # Pty is spawned running this function _zsh_autosuggest_async_suggestion_server() { + emulate -R zsh + while read -d $'\0' prefix; do # Kill last bg process kill -KILL %1 &>/dev/null diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index f85aac6..d8f1103 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -487,6 +487,8 @@ _zsh_autosuggest_async_fetch_suggestion() { # Pty is spawned running this function _zsh_autosuggest_async_suggestion_server() { + emulate -R zsh + while read -d $'\0' prefix; do # Kill last bg process kill -KILL %1 &>/dev/null