mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
fix fontpreview (#903)
This commit is contained in:
parent
ac29a7c166
commit
bebad983ca
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue