summaryrefslogtreecommitdiffstats
path: root/shell/key-bindings.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'shell/key-bindings.zsh')
-rw-r--r--shell/key-bindings.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh
index 559690a7..2433d988 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