From 223c246b78fd6a80aeba2701f510c27f04311c0e Mon Sep 17 00:00:00 2001 From: Jochen Wierum Date: Thu, 21 Dec 2023 09:31:13 +0100 Subject: [PATCH] Fix broken zsh syntax produced by shfmt (#33) --- jq.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jq.plugin.zsh b/jq.plugin.zsh index 2f274aa..903e930 100755 --- a/jq.plugin.zsh +++ b/jq.plugin.zsh @@ -8,8 +8,8 @@ if [[ -o zle ]]; then __get_query() { if [ "${JQ_ZSH_PLUGIN_EXPAND_ALIASES:-1}" -eq 1 ]; then unset 'functions[_jq-plugin-expand]' - functions[_jq - plugin - expand]=$(__lbuffer_strip_trailing_pipe) - (($ + functions[_jq - plugin - expand])) && COMMAND=${functions[_jq - plugin - expand]#$'\t'} + functions[_jq-plugin-expand]=$(__lbuffer_strip_trailing_pipe) + (($+functions[_jq-plugin-expand])) && COMMAND=${functions[_jq-plugin-expand]#$'\t'} # shellcheck disable=SC2086 jq-repl -- ${COMMAND} return $?