Ticket #1694: mc-4.7.0-alt-filetypes-chm.patch

File mc-4.7.0-alt-filetypes-chm.patch, 556 bytes (added by wRAR, 13 years ago)
  • misc/mc.ext.in

    diff --git a/misc/mc.ext.in b/misc/mc.ext.in
    index a093f88..8bb670e 100644
    a b regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$ 
    343343        Open=case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more} 
    344344        View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac 
    345345 
     346# CHM 
     347regex/\.(chm|CHM)$ 
     348        Open=which kchmviewer > /dev/null 2>&1 && (kchmviewer %f &) || (xchm %f &) 
    346349 
    347350### Images ### 
    348351