From 35ed23efe8d6d9a29e60773eee37f45bb1bd579e Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Fri, 25 Aug 2023 15:52:13 -0600 Subject: [PATCH] cleanup: Use simpler arithmetic expression --- src/async.zsh | 2 +- zsh-autosuggestions.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/async.zsh b/src/async.zsh index 218eb26..261cba7 100644 --- a/src/async.zsh +++ b/src/async.zsh @@ -15,7 +15,7 @@ _zsh_autosuggest_async_request() { zle -F $_ZSH_AUTOSUGGEST_ASYNC_FD # We won't know the pid unless the user has zsh/system module installed - if [[ -n "$_ZSH_AUTOSUGGEST_CHILD_PID" ]]; then + if (( _ZSH_AUTOSUGGEST_CHILD_PID )); then # Zsh will make a new process group for the child process only if job # control is enabled (MONITOR option) if [[ -o MONITOR ]]; then diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index b19cac7..dfad3a3 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -770,7 +770,7 @@ _zsh_autosuggest_async_request() { zle -F $_ZSH_AUTOSUGGEST_ASYNC_FD # We won't know the pid unless the user has zsh/system module installed - if [[ -n "$_ZSH_AUTOSUGGEST_CHILD_PID" ]]; then + if (( _ZSH_AUTOSUGGEST_CHILD_PID )); then # Zsh will make a new process group for the child process only if job # control is enabled (MONITOR option) if [[ -o MONITOR ]]; then