Remove --validate-input from highlight
It causes some text to be swallowed
This commit is contained in:
parent
299b9448fc
commit
77a4a3325e
@ -58,7 +58,7 @@ export LESS="--tabs=4 --RAW-CONTROL-CHARS --LONG-PROMPT"
|
|||||||
if command -v highlight > /dev/null; then
|
if command -v highlight > /dev/null; then
|
||||||
# ~/.lessfilter handles the highlighting
|
# ~/.lessfilter handles the highlighting
|
||||||
LESSOPEN="| $(command -v lesspipe) %s"
|
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
|
elif command -v pygmentize > /dev/null; then
|
||||||
LESSOPEN="| $(command -v pygmentize) -f terminal16m -g -O style=paraiso-dark %s"
|
LESSOPEN="| $(command -v pygmentize) -f terminal16m -g -O style=paraiso-dark %s"
|
||||||
elif command -v source-highlight > /dev/null; then
|
elif command -v source-highlight > /dev/null; then
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
command -v highlight > /dev/null || return 1
|
command -v highlight > /dev/null || return 1
|
||||||
file="${1}"
|
file="${1}"
|
||||||
|
|
||||||
local output="$(highlight --validate-input \
|
local output="$(highlight --force \
|
||||||
--force \
|
|
||||||
--out-format=truecolor \
|
--out-format=truecolor \
|
||||||
--style=base16/unikitty-reversible \
|
--style=base16/unikitty-reversible \
|
||||||
--stdout "${file}")"
|
--stdout "${file}")"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user