fix: Space-Tab completions repeating on single match

Still a remaining bug of enter key no longer accepting by default in
fzf selection
This commit is contained in:
Ashley Bartlett 2024-04-09 15:04:44 +10:00
parent 9f67fb5bb9
commit 92bafcfa65
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- zsh: Space-Tab completion repeating output multiple times when matching single directory in history
- fish: detect infinite loop when using `alias cd=z`.
- fish / Nushell / PowerShell: handle queries that look like args (e.g. `z -x`).

View File

@ -119,6 +119,7 @@ if [[ -o zle ]]; then
if [[ -n "${__zoxide_result}" ]]; then
# shellcheck disable=SC2034,SC2296
BUFFER="{{ cmd }} ${(q-)__zoxide_result}"
__zoxide_result=''
\builtin zle reset-prompt
\builtin zle accept-line
else