fix: do not use echo_rgb

This commit is contained in:
Price Hiller 2022-07-31 02:40:58 -05:00
parent 7bf5dee63d
commit fe77dd2ec3

View File

@ -30,7 +30,7 @@ wgrep() {
# This crazy shit handles egde cases of files having colons (:) in them
selection=$(rev <<< $selection | cut -d ':' -f 3- | rev)
if [[ -n "${selection}" ]]; then
[[ -r "${selection}" ]] && "${EDITOR}" "${selection}" || echo_rgb "Cannot open ${selection}" 255 0 0 80 0 0
[[ -r "${selection}" ]] && "${EDITOR}" "${selection}" || printf "Cannot open %s\n" "${selection}"
fi
}