Ticket #3404: mc-4.8.13-old_colors-orderfix.patch

File mc-4.8.13-old_colors-orderfix.patch, 698 bytes (added by and, 5 years ago)

old_color table sort fix

  • lib/skin/colors-old.c

    bsearch() expected a sorted array to work correctly
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    
    diff -ruN mc-4.8.13/lib/skin/colors-old.c mc-4.8.13.patch/lib/skin/colors-old.c
    old new  
    9696    {"reverse", "core", "reverse"}, 
    9797    {"selected", "core", "selected"}, 
    9898    {"statusbar", "statusbar", "_default_"}, 
    99     {"viewnormal", "viewer", "_default_"}, 
    10099    {"viewbold", "viewer", "viewbold"}, 
     100    {"viewnormal", "viewer", "_default_"}, 
    101101    {"viewselected", "viewer", "viewselected"}, 
    102102    {"viewunderline", "viewer", "viewunderline"} 
    103103};