m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

[shell] ALT-C: Use builtin cd to avoid conflicts (#2799)

This commit is contained in:
Ajeet D'Souza
2022-04-22 18:28:32 +05:30
committed by GitHub
parent a0b42e6538
commit 54841248e7
3 changed files with 3 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ fzf-cd-widget() {
return 0
fi
zle push-line # Clear buffer. Auto-restored on next prompt.
BUFFER="cd -- ${(q)dir}"
BUFFER="builtin cd -- ${(q)dir}"
zle accept-line
local ret=$?
unset dir # ensure this doesn't end up appearing in prompt expansion