1
0
Fork 0

Remove unnecessary line in cat-highlight

This commit is contained in:
tastytea 2022-03-18 16:45:39 +01:00
parent 1a1afe2419
commit 9358197167
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,7 @@ function export-emacs
} }
# Highlight cat output with whatever less is using for highlighting. The command # Highlight cat output with whatever less is using for highlighting. The command
# in ${LESSOPEN} needs to be able to work with multiple files. # in $LESSOPEN needs to be able to work with multiple files.
function cat-highlight() function cat-highlight()
{ {
# Check if we are in a terminal and $LESSOPEN is not empty # Check if we are in a terminal and $LESSOPEN is not empty
@ -46,8 +46,7 @@ function cat-highlight()
done done
local catopen="${LESSOPEN/| /}" local catopen="${LESSOPEN/| /}"
catopen="${catopen/\%s/${files}}" eval "${catopen/\%s/${files}} | \cat ${args}"
eval "${catopen} | \cat ${args}"
else else
\cat $@ \cat $@
fi fi