# check that fzf command didnt exit with an error or non-zero code
# (as it does when the user cancels the dialog)
if [ "x${file}" != "x" ]; then
  ${EDITOR:-vim} "${file}"
fi
