about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xranger/data/scope.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index ba8b78bc..9458a52c 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -54,7 +54,7 @@ esac
 case "$mimetype" in
 	# Syntax highlight for text files:
 	text/* | */xml)
-		highlight --ansi "$path" | head -n $maxln
+		highlight --out-format=ansi "$path" | head -n $maxln
 		success && exit 5 || exit 2;;
 	# Ascii-previews of images:
 	image/*)
' href='#n72'>72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129