summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/lib/cgit/filters/syntax-highlighting-edited.sh2
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