Kaynağa Gözat

cleanup: Combine two arithmetic conditionals

pull/488/head
Eric Freese 4 yıl önce
ebeveyn
işleme
ef657cb38c
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +1
    -1
      src/widgets.zsh
  2. +1
    -1
      zsh-autosuggestions.zsh

+ 1
- 1
src/widgets.zsh Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet