nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bebad983cade1f4b6e4ef5e993e6b3e4d4b53c9e
parent ac29a7c166591c956cc4224272df429006964542
Author: luukvbaal <31730729+luukvbaal@users.noreply.github.com>
Date:   Sun, 21 Mar 2021 03:29:06 +0100

fix fontpreview (#903)


Diffstat:
Mplugins/preview-tui-ext | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/preview-tui-ext b/plugins/preview-tui-ext @@ -180,7 +180,7 @@ preview_file () { generate_preview "$cols" "$lines" "$1" "pdf" elif [ "$ext" = "epub" ] && exists gnome-epub-thumbnailer; then generate_preview "$cols" "$lines" "$1" "epub" - elif [ "${mimetype%%/*}" = "font" ] && exists fontpreview; then + elif [ "${mimetype#*opentype}" != "$mimetype" ] || [ "${mimetype#*font}" != "$mimetype" ] && exists fontpreview; then generate_preview "$cols" "$lines" "$1" "font" elif [ "${mimetype#*office}" != "$mimetype" ] || [ "${mimetype#*document}" != "$mimetype" ] && exists libreoffice; then generate_preview "$cols" "$lines" "$1" "office"