Browse Source

cleanup: Use simpler arithmetic expression

fixes/romkatv-async-fixes
Eric Freese 1 year ago
parent
commit
35ed23efe8
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/async.zsh
  2. +1
    -1
      zsh-autosuggestions.zsh

+ 1
- 1
src/async.zsh 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

+ 1
- 1
zsh-autosuggestions.zsh 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

Loading…
Cancel
Save