From 0308ed797e1e100d7e091376efdba16e63f0a1ce Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Tue, 24 Jan 2017 19:55:38 -0700 Subject: [PATCH] Rename worker to server --- src/async.zsh | 4 ++-- zsh-autosuggestions.zsh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/async.zsh b/src/async.zsh index c4632d8..b330ccf 100644 --- a/src/async.zsh +++ b/src/async.zsh @@ -12,7 +12,7 @@ _zsh_autosuggest_async_fetch_suggestion() { } # Pty is spawned running this function -_zsh_autosuggest_async_suggestion_worker() { +_zsh_autosuggest_async_suggestion_server() { local last_pid while read -d $'\0' cmd; do @@ -54,7 +54,7 @@ _zsh_autosuggest_async_recreate_pty() { typeset -h REPLY # Start a new pty running the server function - zpty -b $ZSH_AUTOSUGGEST_PTY_NAME _zsh_autosuggest_async_suggestion_worker + zpty -b $ZSH_AUTOSUGGEST_PTY_NAME _zsh_autosuggest_async_suggestion_server # Store the fd so we can destroy this pty later _ZSH_AUTOSUGGEST_PTY_FD=$REPLY diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 248687f..2b0465a 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -487,7 +487,7 @@ _zsh_autosuggest_async_fetch_suggestion() { } # Pty is spawned running this function -_zsh_autosuggest_async_suggestion_worker() { +_zsh_autosuggest_async_suggestion_server() { local last_pid while read -d $'\0' cmd; do @@ -529,7 +529,7 @@ _zsh_autosuggest_async_recreate_pty() { typeset -h REPLY # Start a new pty running the server function - zpty -b $ZSH_AUTOSUGGEST_PTY_NAME _zsh_autosuggest_async_suggestion_worker + zpty -b $ZSH_AUTOSUGGEST_PTY_NAME _zsh_autosuggest_async_suggestion_server # Store the fd so we can destroy this pty later _ZSH_AUTOSUGGEST_PTY_FD=$REPLY