diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-02-25 10:37:07 +0000 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-02-25 10:37:07 +0000 |
commit | 95adecc3706c7e6b1c7871c2c978fb831f5124de (patch) | |
tree | efb07b52ae9a174b1333087d1e31d29a86872505 /usr | |
parent | 956b907fbca94da8cc23252645d71eaa914750ff (diff) |
fix bug syntax_type should change to syntax
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/lib/cgit/filters/syntax-highlighting-edited.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |