From 95adecc3706c7e6b1c7871c2c978fb831f5124de Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 25 Feb 2024 10:37:07 +0000 Subject: fix bug syntax_type should change to syntax --- usr/lib/cgit/filters/syntax-highlighting-edited.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/lib/cgit/filters/syntax-highlighting-edited.sh b/usr/lib/cgit/filters/syntax-highlighting-edited.sh index 3fe4ab41..f3c8072d 100755 --- a/usr/lib/cgit/filters/syntax-highlighting-edited.sh +++ b/usr/lib/cgit/filters/syntax-highlighting-edited.sh @@ -106,7 +106,7 @@ case "$1" in esac # `--force` needed for highlight; one example is `< textfile highlight -O ansi --force`, without `--force` will error 1 and no output -if [ "$syntax_type" ]; then +if [ "$syntax" ]; then exec highlight --force --inline-css -f -I -O xhtml -S "$syntax" 2>/dev/null else exec highlight --force --inline-css -f -I -O xhtml --syntax-by-name "$1" 2>/dev/null -- cgit v1.2.3-70-g09d2