fix: do not use echo_rgb
This commit is contained in:
parent
7bf5dee63d
commit
fe77dd2ec3
@ -30,7 +30,7 @@ wgrep() {
|
|||||||
# This crazy shit handles egde cases of files having colons (:) in them
|
# This crazy shit handles egde cases of files having colons (:) in them
|
||||||
selection=$(rev <<< $selection | cut -d ':' -f 3- | rev)
|
selection=$(rev <<< $selection | cut -d ':' -f 3- | rev)
|
||||||
if [[ -n "${selection}" ]]; then
|
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
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user