fix: zsh completions needs a result

Re-added `compadd` from previous commit to force the completions to finish
This commit is contained in:
Ashley Bartlett 2024-04-11 09:41:19 +10:00
parent f9d6a3f94c
commit aa78a98087
1 changed files with 4 additions and 1 deletions

View File

@ -104,9 +104,12 @@ if [[ -o zle ]]; then
# shellcheck disable=SC2086
__zoxide_result="$(\command zoxide query --exclude "$(__zoxide_pwd || \builtin true)" --interactive -- ${words[2,-1]})" || __zoxide_result=''
# Set a result to ensure completion doesn't re-run
compadd -Q ""
# Bind '\e[0n' to helper function.
\builtin bindkey '\e[0n' '__zoxide_z_complete_helper'
# Send '\e[0n' to console input.
# Sends query device status code, which results in a '\e[0n' being sent to console input.
\builtin printf '\e[5n'
fi