1
0
Fork 0

Remove --validate-input from highlight

It causes some text to be swallowed
This commit is contained in:
tastytea 2022-04-12 07:33:14 +02:00
parent 299b9448fc
commit 77a4a3325e
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 2 additions and 3 deletions

View File

@ -58,7 +58,7 @@ export LESS="--tabs=4 --RAW-CONTROL-CHARS --LONG-PROMPT"
if command -v highlight > /dev/null; then
# ~/.lessfilter handles the highlighting
LESSOPEN="| $(command -v lesspipe) %s"
export CATOPEN="highlight --validate-input --force --out-format=truecolor --style=base16/unikitty-reversible --stdout %s"
export CATOPEN="highlight --force --out-format=truecolor --style=base16/unikitty-reversible --stdout %s"
elif command -v pygmentize > /dev/null; then
LESSOPEN="| $(command -v pygmentize) -f terminal16m -g -O style=paraiso-dark %s"
elif command -v source-highlight > /dev/null; then

View File

@ -5,8 +5,7 @@
command -v highlight > /dev/null || return 1
file="${1}"
local output="$(highlight --validate-input \
--force \
local output="$(highlight --force \
--out-format=truecolor \
--style=base16/unikitty-reversible \
--stdout "${file}")"