mirror of
https://github.com/zsh-users/zsh-autosuggestions
synced 2024-09-20 08:09:04 +02:00
cleanup: Combine two arithmetic conditionals
This commit is contained in:
parent
bdbe43e667
commit
ef657cb38c
|
@ -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
|
||||
|
|
|
@ -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…
Reference in a new issue