Browse Source

cleanup: Use `+` param expansion flag in arithmetic context

pull/418/head
Eric Freese 5 years ago
parent
commit
d8ba53678e
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/widgets.zsh
  2. +1
    -1
      zsh-autosuggestions.zsh

+ 1
- 1
src/widgets.zsh View File

@ -95,7 +95,7 @@ _zsh_autosuggest_modify() {
# Fetch a new suggestion based on what's currently in the buffer
_zsh_autosuggest_fetch() {
if [[ -n "${ZSH_AUTOSUGGEST_USE_ASYNC+x}" ]]; then
if (( ${+ZSH_AUTOSUGGEST_USE_ASYNC} )); then
_zsh_autosuggest_async_request "$BUFFER"
else
local suggestion

+ 1
- 1
zsh-autosuggestions.zsh View File

@ -366,7 +366,7 @@ _zsh_autosuggest_modify() {
# Fetch a new suggestion based on what's currently in the buffer
_zsh_autosuggest_fetch() {
if [[ -n "${ZSH_AUTOSUGGEST_USE_ASYNC+x}" ]]; then
if (( ${+ZSH_AUTOSUGGEST_USE_ASYNC} )); then
_zsh_autosuggest_async_request "$BUFFER"
else
local suggestion

Loading…
Cancel
Save