Skip to content

Commit

Permalink
Pass --style=plain --paging=never to bat
Browse files Browse the repository at this point in the history
Fixes wofr06#88.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Jul 11, 2022
1 parent 0250bbd commit 643f5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lesspipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ has_colorizer () {
# only allow an explicitly requested language
opt=(-l "$ext")
{ [[ -n $ext ]] && "$prog" "${opt[@]}" /dev/null; } || opt=()
opt+=("$COLOR") ;;
opt+=("$COLOR" --style=plain --paging=never) ;;
pygmentize)
pygmentize -l "$2" /dev/null &>/dev/null && opt=(-l "$2") || opt=(-g)
[[ -n $LESSCOLORIZER && $LESSCOLORIZER =~ pygmentize\ \ *-O\ *style=[a-z]* ]] && opt+=(-O "${LESSCOLORIZER##* }")
Expand Down

0 comments on commit 643f5f4

Please sign in to comment.