浏览代码

cleanup: Use simpler arithmetic expression

fixes/romkatv-async-fixes
Eric Freese 1年前
父节点
当前提交
35ed23efe8
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      src/async.zsh
  2. +1
    -1
      zsh-autosuggestions.zsh

+ 1
- 1
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

+ 1
- 1
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

正在加载...
取消
保存