diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 559690a..2433d98 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -87,8 +87,9 @@ fzf-cd-widget() { zle redisplay return 0 fi - cd "$dir" + BUFFER="cd ${(q)dir}" unset dir # ensure this doesn't end up appearing in prompt expansion + zle accept-line local ret=$? zle fzf-redraw-prompt return $ret