From 60aff2d944087e81962515033699e3b5720851ea Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Tue, 27 Mar 2018 14:51:37 -0600 Subject: [PATCH] Remove unused local `$suggestion` variable --- src/async.zsh | 3 +-- zsh-autosuggestions.zsh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/async.zsh b/src/async.zsh index 1d1e76d..de55e1d 100644 --- a/src/async.zsh +++ b/src/async.zsh @@ -23,7 +23,6 @@ _zsh_autosuggest_async_server() { # Silence any error messages exec 2>/dev/null - local strategy=$1 local last_pid while IFS='' read -r -d $'\0' query; do @@ -70,7 +69,7 @@ _zsh_autosuggest_async_pty_create() { fi # Fork a zpty process running the server function - zpty -b $ZSH_AUTOSUGGEST_ASYNC_PTY_NAME "_zsh_autosuggest_async_server _zsh_autosuggest_strategy_$ZSH_AUTOSUGGEST_STRATEGY" + zpty -b $ZSH_AUTOSUGGEST_ASYNC_PTY_NAME _zsh_autosuggest_async_server # Store the fd so we can remove the handler later if (( REPLY )); then diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 3e0405d..a1037ba 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -591,7 +591,6 @@ _zsh_autosuggest_async_server() { # Silence any error messages exec 2>/dev/null - local strategy=$1 local last_pid while IFS='' read -r -d $'\0' query; do @@ -638,7 +637,7 @@ _zsh_autosuggest_async_pty_create() { fi # Fork a zpty process running the server function - zpty -b $ZSH_AUTOSUGGEST_ASYNC_PTY_NAME "_zsh_autosuggest_async_server _zsh_autosuggest_strategy_$ZSH_AUTOSUGGEST_STRATEGY" + zpty -b $ZSH_AUTOSUGGEST_ASYNC_PTY_NAME _zsh_autosuggest_async_server # Store the fd so we can remove the handler later if (( REPLY )); then