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.
This commit is contained in:
2021-01-05 22:07:07 +01:00
parent d0cd6ffef0
commit 2c30d57573

View File

@@ -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