mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-25 10:01:05 +01:00
Reset zsh options inside pty (from zsh-async)
This commit is contained in:
parent
e33eb570c4
commit
5c891afd48
2 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,8 @@ _zsh_autosuggest_async_fetch_suggestion() {
|
||||||
|
|
||||||
# Pty is spawned running this function
|
# Pty is spawned running this function
|
||||||
_zsh_autosuggest_async_suggestion_server() {
|
_zsh_autosuggest_async_suggestion_server() {
|
||||||
|
emulate -R zsh
|
||||||
|
|
||||||
while read -d $'\0' prefix; do
|
while read -d $'\0' prefix; do
|
||||||
# Kill last bg process
|
# Kill last bg process
|
||||||
kill -KILL %1 &>/dev/null
|
kill -KILL %1 &>/dev/null
|
||||||
|
|
|
@ -487,6 +487,8 @@ _zsh_autosuggest_async_fetch_suggestion() {
|
||||||
|
|
||||||
# Pty is spawned running this function
|
# Pty is spawned running this function
|
||||||
_zsh_autosuggest_async_suggestion_server() {
|
_zsh_autosuggest_async_suggestion_server() {
|
||||||
|
emulate -R zsh
|
||||||
|
|
||||||
while read -d $'\0' prefix; do
|
while read -d $'\0' prefix; do
|
||||||
# Kill last bg process
|
# Kill last bg process
|
||||||
kill -KILL %1 &>/dev/null
|
kill -KILL %1 &>/dev/null
|
||||||
|
|
Loading…
Reference in a new issue