瀏覽代碼

cleanup: Combine two arithmetic conditionals

pull/488/head
Eric Freese 4 年之前
父節點
當前提交
ef657cb38c
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      src/widgets.zsh
  2. +1
    -1
      zsh-autosuggestions.zsh

+ 1
- 1
src/widgets.zsh 查看文件

@ -56,7 +56,7 @@ _zsh_autosuggest_modify() {
emulate -L zsh
# Don't fetch a new suggestion if there's more input to be read immediately
if (( $PENDING > 0 )) || (( $KEYS_QUEUED_COUNT > 0 )); then
if (( $PENDING > 0 || $KEYS_QUEUED_COUNT > 0 )); then
POSTDISPLAY="$orig_postdisplay"
return $retval
fi

+ 1
- 1
zsh-autosuggestions.zsh 查看文件

@ -318,7 +318,7 @@ _zsh_autosuggest_modify() {
emulate -L zsh
# Don't fetch a new suggestion if there's more input to be read immediately
if (( $PENDING > 0 )) || (( $KEYS_QUEUED_COUNT > 0 )); then
if (( $PENDING > 0 || $KEYS_QUEUED_COUNT > 0 )); then
POSTDISPLAY="$orig_postdisplay"
return $retval
fi

Loading…
取消
儲存