Skip to content

Commit

Permalink
Fix broken zsh syntax produced by shfmt (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenwierum authored Dec 21, 2023
1 parent cf16e78 commit 223c246
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jq.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down

0 comments on commit 223c246

Please sign in to comment.