]> Sergey Matveev's repositories - nnn.git/commitdiff
Added the media registry 'font' for mime types part of it.
authorSacha Telgenhof <me@sachatelgenhof.com>
Sun, 17 Oct 2021 05:34:09 +0000 (14:34 +0900)
committerSacha Telgenhof <me@sachatelgenhof.com>
Sun, 17 Oct 2021 05:34:09 +0000 (14:34 +0900)
Signed-off-by: Sacha Telgenhof <me@sachatelgenhof.com>
plugins/preview-tui

index 3116a889db02d433f9de210170d303abd727bb1b..c634cf00a7a3991d3c3c4527d5bad4fe466505ed 100755 (executable)
@@ -229,7 +229,7 @@ handle_mime() {
         image/*) generate_preview "$cols" "$lines" "$1" "image" ;;
         video/*) generate_preview "$cols" "$lines" "$1" "video" ;;
         audio/*) generate_preview "$cols" "$lines" "$1" "audio" ;;
-        application/font*|application/*opentype) generate_preview "$cols" "$lines" "$1" "font" ;;
+        application/font*|application/*opentype|font/*) generate_preview "$cols" "$lines" "$1" "font" ;;
         */*office*|*/*document*) generate_preview "$cols" "$lines" "$1" "office" ;;
         application/zip) fifo_pager unzip -l "$1" ;;
         text/troff)