mirror of
https://github.com/ajeetdsouza/zoxide.git
synced 2026-08-24 10:14:47 -05:00
Zsh: avoid trailing space when cancelling interactive completions
This commit is contained in:
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- PowerShell: use fully qualified names when invoking cmdlets.
|
||||
- Bash/Fish/POSIX/Zsh: resolve symlinks on Windows.
|
||||
- Zsh: avoid inserting a trailing space when cancelling interactive Space-Tab completions.
|
||||
|
||||
## [0.9.9] - 2026-01-31
|
||||
|
||||
|
||||
+1
-1
@@ -147,7 +147,7 @@ if [[ -o zle ]]; then
|
||||
__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 ""
|
||||
compadd -Q -S "" -- ""
|
||||
|
||||
# Bind '\e[0n' to helper function.
|
||||
\builtin bindkey '\e[0n' '__zoxide_z_complete_helper'
|
||||
|
||||
Reference in New Issue
Block a user