From 2c30d5757357b81087a84506f7de67c28be12b7a Mon Sep 17 00:00:00 2001 From: druckdev Date: Tue, 5 Jan 2021 22:07:07 +0100 Subject: [PATCH] zsh:keys: Fix fzf abort check The file should be opened if fzf returned something not the other way around. This probably happened in the last refactoring session before committing. --- .config/zsh/zshrc.d/60-keys.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/zshrc.d/60-keys.zsh b/.config/zsh/zshrc.d/60-keys.zsh index bc953fa..52b9887 100644 --- a/.config/zsh/zshrc.d/60-keys.zsh +++ b/.config/zsh/zshrc.d/60-keys.zsh @@ -69,7 +69,7 @@ function edit-fuzzy-file { local -a fzf_args=(--height "40%" --reverse) file="$(eval ${FZF_DEFAULT_COMMAND:-$fzf_fallback} | fzf "$fzf_args[@]")" - [[ -n $file ]] || $EDITOR "$file" + [[ -z $file ]] || $EDITOR "$file" # Fix prompt zle redisplay