aboutsummaryrefslogtreecommitdiff
path: root/config/zsh/plugins/fzf-cd.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'config/zsh/plugins/fzf-cd.zsh')
-rw-r--r--config/zsh/plugins/fzf-cd.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/zsh/plugins/fzf-cd.zsh b/config/zsh/plugins/fzf-cd.zsh
index f1897c5..02b85e7 100644
--- a/config/zsh/plugins/fzf-cd.zsh
+++ b/config/zsh/plugins/fzf-cd.zsh
@@ -4,7 +4,7 @@ fzf-change-dir-cwd() { # fzf + cd in cwd
if [ ! -z "$selected" ] && [ "$selected" != "$(pwd)" ]; then
cd $selected;
fi
- zle send-break
+ zle send-break || true
}
zle -N fzf-change-dir-cwd;
@@ -15,7 +15,7 @@ fzf-change-dir() {
if ! [[ -z "$result" ]]; then
cd "$result"
fi
- zle send-break
+ zle send-break || true
}
zle -N fzf-change-dir;