fix: zsh completions needs a result
Re-added `compadd` from previous commit to force the completions to finish
This commit is contained in:
parent
f9d6a3f94c
commit
aa78a98087
|
|
@ -104,9 +104,12 @@ if [[ -o zle ]]; then
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
__zoxide_result="$(\command zoxide query --exclude "$(__zoxide_pwd || \builtin true)" --interactive -- ${words[2,-1]})" || __zoxide_result=''
|
__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.
|
# Bind '\e[0n' to helper function.
|
||||||
\builtin bindkey '\e[0n' '__zoxide_z_complete_helper'
|
\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'
|
\builtin printf '\e[5n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue