Quote properly in cat-highlight()

This commit is contained in:
tastytea 2022-04-10 03:58:41 +02:00
parent 08d5e15e18
commit 16fcbdd23a
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -30,7 +30,7 @@ if [[ -t 1 ]] && [[ -n "${CATOPEN}" || -n "${LESSOPEN}" ]]; then
for arg in ${@}; do
# Filter out file names
if [[ "${arg[1]}" != "-" ]]; then
files+="'${arg}'"
files+=${(q)arg}
else
args+="${arg}"
fi