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:
@@ -69,7 +69,7 @@ function edit-fuzzy-file {
|
|||||||
local -a fzf_args=(--height "40%" --reverse)
|
local -a fzf_args=(--height "40%" --reverse)
|
||||||
|
|
||||||
file="$(eval ${FZF_DEFAULT_COMMAND:-$fzf_fallback} | fzf "$fzf_args[@]")"
|
file="$(eval ${FZF_DEFAULT_COMMAND:-$fzf_fallback} | fzf "$fzf_args[@]")"
|
||||||
[[ -n $file ]] || $EDITOR "$file"
|
[[ -z $file ]] || $EDITOR "$file"
|
||||||
|
|
||||||
# Fix prompt
|
# Fix prompt
|
||||||
zle redisplay
|
zle redisplay
|
||||||
|
|||||||
Reference in New Issue
Block a user