diff --git a/CHANGELOG.md b/CHANGELOG.md index 37a8226..63b9b30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/templates/zsh.txt b/templates/zsh.txt index f900f3a..fa81218 100644 --- a/templates/zsh.txt +++ b/templates/zsh.txt @@ -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'