diff options
-rwxr-xr-x | ranger/data/scope.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index d17d24de..8a0f20c4 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -70,7 +70,7 @@ esac case "$mimetype" in # Syntax highlight for text files: text/* | */xml) - try highlight --out-format=ansi "$path" && { dump; exit 5; } || exit 2;; + try highlight --out-format=ansi "$path" && { dump | trim; exit 5; } || exit 2;; # Ascii-previews of images: image/*) img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;; |