mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-02-27 10:25:31 +08: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 New Issue
Block a user