File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,10 @@ if [[ -o zle ]]; then
103
103
# Show completions for Space-Tab.
104
104
# shellcheck disable=SC2086
105
105
__zoxide_result="$(\command zoxide query --exclude "$(__zoxide_pwd || \builtin true)" --interactive -- ${words[2,-1]})" || __zoxide_result=''
106
- # Sends '\e[0n' to console input.
106
+
107
+ # Bind '\e[0n' to helper function.
108
+ \builtin bindkey '\e[0n' '__zoxide_z_complete_helper'
109
+ # Send '\e[0n' to console input.
107
110
\builtin printf '\e[5n'
108
111
fi
109
112
@@ -124,7 +127,6 @@ if [[ -o zle ]]; then
124
127
}
125
128
\builtin zle -N __zoxide_z_complete_helper
126
129
127
- \builtin bindkey '\e[0n' '__zoxide_z_complete_helper'
128
130
[[ "${+functions[compdef]}" -ne 0 ]] && \compdef __zoxide_z_complete {{ cmd }}
129
131
fi
130
132
You can’t perform that action at this time.
0 commit comments