cleanup: Use simpler arithmetic expression

This commit is contained in:
Eric Freese 2023-08-25 15:52:13 -06:00
parent 9b0272944f
commit 35ed23efe8
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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