Explorar el Código

cleanup: Use simpler arithmetic expression

fixes/romkatv-async-fixes
Eric Freese hace 1 año
padre
commit
35ed23efe8
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      src/async.zsh
  2. +1
    -1
      zsh-autosuggestions.zsh

+ 1
- 1
src/async.zsh Ver fichero

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

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

Cargando…
Cancelar
Guardar