mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-25 10:01:05 +01:00
cleanup: Use simpler arithmetic expression
This commit is contained in:
parent
9b0272944f
commit
35ed23efe8
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ _zsh_autosuggest_async_request() {
|
||||||
zle -F $_ZSH_AUTOSUGGEST_ASYNC_FD
|
zle -F $_ZSH_AUTOSUGGEST_ASYNC_FD
|
||||||
|
|
||||||
# We won't know the pid unless the user has zsh/system module installed
|
# 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
|
# Zsh will make a new process group for the child process only if job
|
||||||
# control is enabled (MONITOR option)
|
# control is enabled (MONITOR option)
|
||||||
if [[ -o MONITOR ]]; then
|
if [[ -o MONITOR ]]; then
|
||||||
|
|
|
@ -770,7 +770,7 @@ _zsh_autosuggest_async_request() {
|
||||||
zle -F $_ZSH_AUTOSUGGEST_ASYNC_FD
|
zle -F $_ZSH_AUTOSUGGEST_ASYNC_FD
|
||||||
|
|
||||||
# We won't know the pid unless the user has zsh/system module installed
|
# 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
|
# Zsh will make a new process group for the child process only if job
|
||||||
# control is enabled (MONITOR option)
|
# control is enabled (MONITOR option)
|
||||||
if [[ -o MONITOR ]]; then
|
if [[ -o MONITOR ]]; then
|
||||||
|
|
Loading…
Reference in a new issue